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.thin.base.screen.activator;
 
public class ThinActivator extends BaseBundleActivator
    String[] args = {
    		"menu=Thin",
//x    		"background=backgrounds/worldmapalpha.gif",
//x    		"backgroundcolor=#EEEEFF",
//x    		"mainSharedDBName=main_base",
//x    		"local=Jdbc",
//x    		"remote=Jdbc",
//x    		"table=Jdbc",
    		"connectionType=proxy",
    		"codebase=localhost:8181/",
    		"server=localhost",
    		};	// TODO(don) Fix this
Setup the application properties. Override this to set the properties.

Parameters:
bundleContext BundleContext
	public void init()
	{
		super.init();
	}

    
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 = new Hashtable<String,Object>();
        Util.parseArgs(propertiesTemp);
        //?server = new SApplet(args);
        ThinApplet.main();
        return Application.getRootApplet();
        //?Environment env = new Environment(propertiesTemp);
    }
    
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)
    {
    	((BaseAppletReference)service).free();
    	return true;
    }
New to GrepCode? Check out our FAQ X