Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * RmiSessionServer.java
  *
  * Created on January 10, 2000, 4:47 PM
  
  * Copyright © 2012 jbundle.org. All rights reserved.
  */
 package org.jbundle.base.screen.control.swing.activator;
 
public class AppletActivator extends BaseThickActivator
{

    
Start this service. Override this to do all the startup.

Parameters:
context bundle context
Returns:
true if successful.
    public Object startupService(BundleContext bundleContext)
    {
	        Map<String,ObjectpropertiesTemp = this.getServiceProperties();
	        //?server = new SApplet(args);
	        propertiesTemp.put(.SApplet.class.getName());
	        Splash.main(Utility.propertiesToArgs(propertiesTemp));	// Note that I start Main instead of SApplet so SApplet can shutdown this bundle
//	        Main.main(Utility.propertiesToArgs(propertiesTemp));
	        return Application.getRootApplet();
//?    	        Environment env = new Environment(propertiesTemp);
	        // Note the order that I do this... this is because MainApplication may need access to the remoteapp during initialization
    }
    
Stop this service. Override this to do all the startup.

Parameters:
bundleService
context bundle context
Returns:
true if successful.
    public boolean shutdownService(Object serviceBundleContext context)
    {
    	if (((Task)(service)).getApplication() != null)
    		((Task)(service)).getApplication().free();
    	else
    		((Task)(service)).free();
    	return true;
    }
New to GrepCode? Check out our FAQ X