public abstract class AbstractOSGiDeployer extends Object implements OSGiDeployer
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractOSGiDeployer.State
Various request processing states
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOSGiDeployer(org.osgi.framework.BundleContext bundleContext,
int rank) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlesprotected AbstractOSGiDeployer(org.osgi.framework.BundleContext bundleContext,
int rank)
public org.osgi.framework.BundleContext getBundleContext()
public void register()
public void unregister()
public OSGiApplicationInfo deploy(org.osgi.framework.Bundle b) throws DeploymentException
deploy in interface OSGiDeployerDeploymentExceptionpublic void undeploy(OSGiApplicationInfo osgiAppInfo) throws DeploymentException
undeploy in interface OSGiDeployerDeploymentExceptionprotected org.glassfish.api.ActionReport getReport()
public void undeployAll()
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)
protected void raiseEvent(AbstractOSGiDeployer.State state, org.osgi.framework.Bundle appBundle, Throwable throwable)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.