org.glassfish.osgijavaeebase
Class AbstractOSGiDeployer
java.lang.Object
org.glassfish.osgijavaeebase.AbstractOSGiDeployer
- All Implemented Interfaces:
- OSGiDeployer
public abstract class AbstractOSGiDeployer
- extends Object
- implements OSGiDeployer
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Constructor Summary |
protected |
AbstractOSGiDeployer(org.osgi.framework.BundleContext bundleContext,
int rank)
|
|
Method Summary |
protected abstract OSGiDeploymentRequest |
createOSGiDeploymentRequest(org.glassfish.internal.deployment.Deployment deployer,
com.sun.enterprise.deploy.shared.ArchiveFactory archiveFactory,
org.glassfish.server.ServerEnvironmentImpl env,
org.glassfish.api.ActionReport reporter,
org.osgi.framework.Bundle b)
|
protected abstract OSGiUndeploymentRequest |
createOSGiUndeploymentRequest(org.glassfish.internal.deployment.Deployment deployer,
org.glassfish.server.ServerEnvironmentImpl env,
org.glassfish.api.ActionReport reporter,
OSGiApplicationInfo osgiAppInfo)
|
OSGiApplicationInfo |
deploy(org.osgi.framework.Bundle b)
|
org.osgi.framework.BundleContext |
getBundleContext()
|
protected org.glassfish.api.ActionReport |
getReport()
|
protected void |
raiseEvent(AbstractOSGiDeployer.State state,
org.osgi.framework.Bundle appBundle,
Throwable throwable)
Integration with Event Admin Service happens here. |
void |
register()
Registers this as an OSGi service |
void |
undeploy(OSGiApplicationInfo osgiAppInfo)
|
void |
undeployAll()
Undeploys all bundles which have been deployed using this deployer |
void |
unregister()
Unregisters itself from OSGi service registry
Before it unregisters itself, it first undeploys all applications that were deployed using itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractOSGiDeployer
protected AbstractOSGiDeployer(org.osgi.framework.BundleContext bundleContext,
int rank)
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
register
public void register()
- Registers this as an OSGi service
unregister
public void unregister()
- Unregisters itself from OSGi service registry
Before it unregisters itself, it first undeploys all applications that were deployed using itself.
deploy
public OSGiApplicationInfo deploy(org.osgi.framework.Bundle b)
throws DeploymentException
- Specified by:
deploy in interface OSGiDeployer
- Throws:
DeploymentException
undeploy
public void undeploy(OSGiApplicationInfo osgiAppInfo)
throws DeploymentException
- Specified by:
undeploy in interface OSGiDeployer
- Throws:
DeploymentException
getReport
protected org.glassfish.api.ActionReport getReport()
undeployAll
public void undeployAll()
- Undeploys all bundles which have been deployed using this deployer
createOSGiDeploymentRequest
protected abstract OSGiDeploymentRequest createOSGiDeploymentRequest(org.glassfish.internal.deployment.Deployment deployer,
com.sun.enterprise.deploy.shared.ArchiveFactory archiveFactory,
org.glassfish.server.ServerEnvironmentImpl env,
org.glassfish.api.ActionReport reporter,
org.osgi.framework.Bundle b)
createOSGiUndeploymentRequest
protected abstract OSGiUndeploymentRequest createOSGiUndeploymentRequest(org.glassfish.internal.deployment.Deployment deployer,
org.glassfish.server.ServerEnvironmentImpl env,
org.glassfish.api.ActionReport reporter,
OSGiApplicationInfo osgiAppInfo)
raiseEvent
protected void raiseEvent(AbstractOSGiDeployer.State state,
org.osgi.framework.Bundle appBundle,
Throwable throwable)
- Integration with Event Admin Service happens here.
Copyright © 2012 GlassFish Community. All Rights Reserved.