org.glassfish.osgijavaeebase
Class OSGiDeploymentRequest
java.lang.Object
org.glassfish.osgijavaeebase.OSGiDeploymentRequest
public abstract class OSGiDeploymentRequest
- extends Object
This is a stateful service. This is responsible for deployment
of artifacts in JavaEE runtime.
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Constructor Summary |
OSGiDeploymentRequest(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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiDeploymentRequest
public OSGiDeploymentRequest(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)
preDeploy
protected void preDeploy()
throws DeploymentException
- Throws:
DeploymentException
postDeploy
protected void postDeploy()
execute
public OSGiApplicationInfo execute()
- Deploys a web application bundle in GlassFish Web container.
It properly rolls back if something goes wrong.
- Returns:
- OSGIApplicationInfo
makeArchive
protected org.glassfish.api.deployment.archive.ReadableArchive makeArchive()
- Factory method. Subclasses override this to create specialised Archive instance.
- Returns:
getDeploymentContextImpl
protected abstract OSGiDeploymentContext getDeploymentContextImpl(org.glassfish.api.ActionReport reporter,
Logger logger,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.api.deployment.OpsParams opsParams,
org.glassfish.server.ServerEnvironmentImpl env,
org.osgi.framework.Bundle b)
throws Exception
- Throws:
Exception
makeFile
public static File makeFile(org.glassfish.api.deployment.archive.ReadableArchive a)
- Parameters:
a - The archive
- Returns:
- a File object that corresponds to this archive.
return null if it can't determine the underlying file object.
getDeployParams
protected org.glassfish.api.deployment.DeployCommandParameters getDeployParams()
throws Exception
- Throws:
Exception
getBundle
public org.osgi.framework.Bundle getBundle()
getArchive
public org.glassfish.api.deployment.archive.ReadableArchive getArchive()
getResult
public OSGiApplicationInfo getResult()
Copyright © 2012 GlassFish Community. All Rights Reserved.