org.glassfish.osgijavaeebase
Class OSGiContainer
java.lang.Object
org.glassfish.osgijavaeebase.OSGiContainer
public class OSGiContainer
- extends java.lang.Object
This class is primarily responsbile for depoyment and undeployment of EE artifacts of an OSGi bundle.
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Constructor Summary |
protected |
OSGiContainer(org.osgi.framework.BundleContext ctx)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
applications
protected java.util.Map<org.osgi.framework.Bundle,OSGiApplicationInfo> applications
regs
protected java.util.Map<OSGiApplicationInfo,org.osgi.framework.ServiceRegistration> regs
OSGiContainer
protected OSGiContainer(org.osgi.framework.BundleContext ctx)
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 © 2011 GlassFish Community. All Rights Reserved.