org.glassfish.osgijavaeebase
Class OSGiDeploymentRequest

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

public abstract class OSGiDeploymentRequest
extends java.lang.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)
           
 
Method Summary
 OSGiApplicationInfo execute()
          Deploys a web application bundle in GlassFish Web container.
 org.glassfish.api.deployment.archive.ReadableArchive getArchive()
           
 org.osgi.framework.Bundle getBundle()
           
protected abstract  OSGiDeploymentContext getDeploymentContextImpl(org.glassfish.api.ActionReport reporter, java.util.logging.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)
           
protected  org.glassfish.api.deployment.DeployCommandParameters getDeployParams()
           
 OSGiApplicationInfo getResult()
           
protected  org.glassfish.api.deployment.archive.ReadableArchive makeArchive()
          Factory method.
static java.io.File makeFile(org.glassfish.api.deployment.archive.ReadableArchive a)
           
protected  void postDeploy()
           
protected  void preDeploy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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,
                                                                  java.util.logging.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 java.lang.Exception
Throws:
java.lang.Exception

makeFile

public static java.io.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 java.lang.Exception
Throws:
java.lang.Exception

getBundle

public org.osgi.framework.Bundle getBundle()

getArchive

public org.glassfish.api.deployment.archive.ReadableArchive getArchive()

getResult

public OSGiApplicationInfo getResult()


Copyright © 2011 GlassFish Community. All Rights Reserved.