@Service public class EjbDeployer extends JavaEEDeployer<EjbContainerStarter,EjbApplication> implements org.glassfish.hk2.api.PostConstruct, EventListener
EventListener.Event<T>| Modifier and Type | Field and Description |
|---|---|
protected Domain |
domain |
protected EJBSecurityManagerFactory |
ejbSecManagerFactory |
protected PolicyLoader |
policyLoader |
protected ServerContext |
serverContext |
appRegistry, env, habitat, undeploymentVisitor| Constructor and Description |
|---|
EjbDeployer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean(DeploymentContext dc)
Clean any files and artifacts that were created during the execution of the prepare method.
|
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
protected void |
generateArtifacts(DeploymentContext dc)
Use this method to generate any ejb-related artifacts for the module
|
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
EjbApplication |
load(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.
|
void |
postConstruct() |
boolean |
prepare(DeploymentContext dc)
Prepares the application bits for running in the application server.
|
void |
unload(EjbApplication ejbApplication,
DeploymentContext dc)
Unload or stop a previously running application identified with the
ContractProvider instance.
|
getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType, loadMetaData@Inject protected ServerContext serverContext
@Inject protected Domain domain
@Inject protected PolicyLoader policyLoader
@Inject protected EJBSecurityManagerFactory ejbSecManagerFactory
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic MetaData getMetaData()
JavaEEDeployergetMetaData in interface Deployer<EjbContainerStarter,EjbApplication>getMetaData in class JavaEEDeployer<EjbContainerStarter,EjbApplication>public boolean prepare(DeploymentContext dc)
JavaEEDeployerprepare in interface Deployer<EjbContainerStarter,EjbApplication>prepare in class JavaEEDeployer<EjbContainerStarter,EjbApplication>dc - deployment contextpublic EjbApplication load(EjbContainerStarter containerStarter, DeploymentContext dc)
JavaEEDeployerload in interface Deployer<EjbContainerStarter,EjbApplication>load in class JavaEEDeployer<EjbContainerStarter,EjbApplication>containerStarter - in which the application will residedc - of the deploymentpublic void unload(EjbApplication ejbApplication, DeploymentContext dc)
Deployerunload in interface Deployer<EjbContainerStarter,EjbApplication>ejbApplication - instance to be stoppeddc - of the undeploymentpublic void clean(DeploymentContext dc)
clean in interface Deployer<EjbContainerStarter,EjbApplication>clean in class JavaEEDeployer<EjbContainerStarter,EjbApplication>dc - deployment contextprotected void generateArtifacts(DeploymentContext dc) throws DeploymentException
generateArtifacts in class JavaEEDeployer<EjbContainerStarter,EjbApplication>DeploymentExceptionpublic void event(EventListener.Event event)
EventListenerevent in interface EventListenerCopyright © 2019. All rights reserved.