org.glassfish.osgijavaeebase
Class OSGiContainer

java.lang.Object
  extended by org.glassfish.osgijavaeebase.OSGiContainer

public class OSGiContainer
extends Object

This class is primarily responsbile for depoyment and undeployment of EE artifacts of an OSGi bundle.

Author:
Sanjeeb.Sahoo@Sun.COM

Field Summary
protected  Map<org.osgi.framework.Bundle,OSGiApplicationInfo> applications
           
protected  Map<OSGiApplicationInfo,org.osgi.framework.ServiceRegistration> regs
           
 
Constructor Summary
protected OSGiContainer(org.osgi.framework.BundleContext ctx)
           
 
Method Summary
 OSGiApplicationInfo deploy(org.osgi.framework.Bundle b)
          Deploys an application bundle in underlying application container in GlassFish.
 OSGiApplicationInfo[] getDeployedApps()
           
protected  void init()
           
 boolean isDeployed(org.osgi.framework.Bundle bundle)
           
 boolean isShutdown()
           
protected  void shutdown()
           
 void undeploy(org.osgi.framework.Bundle b)
          Undeploys a Java EE application bundle.
 void undeployAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applications

protected Map<org.osgi.framework.Bundle,OSGiApplicationInfo> applications

regs

protected Map<OSGiApplicationInfo,org.osgi.framework.ServiceRegistration> regs
Constructor Detail

OSGiContainer

protected OSGiContainer(org.osgi.framework.BundleContext ctx)
Method Detail

init

protected void init()

shutdown

protected void shutdown()

isShutdown

public boolean isShutdown()

deploy

public OSGiApplicationInfo deploy(org.osgi.framework.Bundle b)
Deploys an application bundle in underlying application container in GlassFish. This method is synchronized because we don't know if GlassFish deployment framework can handle concurrent requests or not.

Parameters:
b - Bundle to be deployed.

undeploy

public void undeploy(org.osgi.framework.Bundle b)
Undeploys a Java EE application bundle. This method is synchronized because we don't know if GlassFish deployment framework can handle concurrent requests or not.

Parameters:
b - Bundle to be undeployed

undeployAll

public void undeployAll()

isDeployed

public boolean isDeployed(org.osgi.framework.Bundle bundle)

getDeployedApps

public OSGiApplicationInfo[] getDeployedApps()


Copyright © 2012 GlassFish Community. All Rights Reserved.