Package org.glassfish.ejb.startup
Class EjbDeployer
- java.lang.Object
-
- org.glassfish.javaee.core.deployment.JavaEEDeployer<EjbContainerStarter,EjbApplication>
-
- org.glassfish.ejb.startup.EjbDeployer
-
- All Implemented Interfaces:
Deployer<EjbContainerStarter,EjbApplication>,EventListener,org.glassfish.hk2.api.PostConstruct
@Service public class EjbDeployer extends JavaEEDeployer<EjbContainerStarter,EjbApplication> implements org.glassfish.hk2.api.PostConstruct, EventListener
Ejb module deployer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Domaindomainprotected EJBSecurityManagerFactoryejbSecManagerFactoryprotected PolicyLoaderpolicyLoaderprotected ServerContextserverContext-
Fields inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
appRegistry, env, habitat, undeploymentVisitor
-
-
Constructor Summary
Constructors Constructor Description EjbDeployer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(DeploymentContext dc)Clean any files and artifacts that were created during the execution of the prepare method.voidevent(EventListener.Event event)Process a Glassfish/Payara eventprotected voidgenerateArtifacts(DeploymentContext dc)Use this method to generate any ejb-related artifacts for the moduleMetaDatagetMetaData()Returns the meta data assocated with this DeployerEjbApplicationload(EjbContainerStarter containerStarter, DeploymentContext dc)Loads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime.voidpostConstruct()booleanprepare(DeploymentContext dc)Prepares the application bits for running in the application server.voidunload(EjbApplication ejbApplication, DeploymentContext dc)Unload or stop a previously running application identified with the ContractProvider instance.-
Methods inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType, loadMetaData
-
-
-
-
Field Detail
-
serverContext
@Inject protected ServerContext serverContext
-
domain
@Inject protected Domain domain
-
policyLoader
@Inject protected PolicyLoader policyLoader
-
ejbSecManagerFactory
@Inject protected EJBSecurityManagerFactory ejbSecManagerFactory
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
getMetaData
public MetaData getMetaData()
Description copied from class:JavaEEDeployerReturns the meta data assocated with this Deployer- Specified by:
getMetaDatain interfaceDeployer<EjbContainerStarter,EjbApplication>- Overrides:
getMetaDatain classJavaEEDeployer<EjbContainerStarter,EjbApplication>- Returns:
- the meta data for this Deployer
-
prepare
public boolean prepare(DeploymentContext dc)
Description copied from class:JavaEEDeployerPrepares the application bits for running in the application server. For certain cases, this is generating non portable artifacts and other application specific tasks. Failure to prepare should throw an exception which will cause the overall deployment to fail.- Specified by:
preparein interfaceDeployer<EjbContainerStarter,EjbApplication>- Overrides:
preparein classJavaEEDeployer<EjbContainerStarter,EjbApplication>- Parameters:
dc- deployment context- Returns:
- true if the prepare phase was successful
-
load
public EjbApplication load(EjbContainerStarter containerStarter, DeploymentContext dc)
Description copied from class:JavaEEDeployerLoads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime.- Specified by:
loadin interfaceDeployer<EjbContainerStarter,EjbApplication>- Overrides:
loadin classJavaEEDeployer<EjbContainerStarter,EjbApplication>- Parameters:
containerStarter- in which the application will residedc- of the deployment- Returns:
- an ApplicationContainer instance identifying the running application
-
unload
public void unload(EjbApplication ejbApplication, DeploymentContext dc)
Description copied from interface:DeployerUnload or stop a previously running application identified with the ContractProvider instance. The container will be stop upon return from this method.- Specified by:
unloadin interfaceDeployer<EjbContainerStarter,EjbApplication>- Parameters:
ejbApplication- instance to be stoppeddc- of the undeployment
-
clean
public void clean(DeploymentContext dc)
Clean any files and artifacts that were created during the execution of the prepare method.- Specified by:
cleanin interfaceDeployer<EjbContainerStarter,EjbApplication>- Overrides:
cleanin classJavaEEDeployer<EjbContainerStarter,EjbApplication>- Parameters:
dc- deployment context
-
generateArtifacts
protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
Use this method to generate any ejb-related artifacts for the module- Overrides:
generateArtifactsin classJavaEEDeployer<EjbContainerStarter,EjbApplication>- Throws:
DeploymentException
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListenerProcess a Glassfish/Payara event- Specified by:
eventin interfaceEventListener
-
-