Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.friendularity.bundle.test.facedetect.r50;
 
public class Activator implements BundleActivator {
    @Override
    public void start(BundleContext contextthrows Exception {
        String envVarKey =
                "org.friendularity.bundle.test.facedetect.r50.connections";
        String ipAddress = System.getProperty(
                envVarKey, System.getenv(envVarKey));
        UserSettings.setImageRegionAddress(ipAddress);
        UserSettings.setImageRegionId("0");
        
                MechIO.connectImageRegionService();
        Listener<ImageRegionListmonitor = new FaceMonitor(ipAddress);
        
        regions.addImageRegionsListener(monitor);
    }
    @Override
    public void stop(BundleContext contextthrows Exception {
        // TODO add deactivation code here
    }
New to GrepCode? Check out our FAQ X