Class ConnectorDeployer
- java.lang.Object
-
- org.glassfish.javaee.core.deployment.JavaEEDeployer<ConnectorContainer,ConnectorApplication>
-
- com.sun.enterprise.connectors.module.ConnectorDeployer
-
- All Implemented Interfaces:
Deployer<ConnectorContainer,ConnectorApplication>
,EventListener
,org.glassfish.hk2.api.PostConstruct
,org.glassfish.hk2.api.PreDestroy
@Service public class ConnectorDeployer extends JavaEEDeployer<ConnectorContainer,ConnectorApplication> implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, EventListener
Deployer for a resource-adapter.- Author:
- Jagadish Ramu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Field Summary
-
Fields inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
appRegistry, habitat, undeploymentVisitor
-
-
Constructor Summary
Constructors Constructor Description ConnectorDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 eventMetaData
getMetaData()
Returns the meta data assocated with this DeployerConnectorApplication
load(ConnectorContainer container, DeploymentContext context)
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.<T> T
loadMetaData(Class<T> type, DeploymentContext context)
Loads the meta date associated with the application.void
logFine(String message)
void
postConstruct()
The component has been injected with any dependency and will be placed into commission by the subsystem.void
preDestroy()
void
unload(ConnectorApplication appContainer, DeploymentContext context)
Unload or stop a previously running application identified with the ContractProvider instance.-
Methods inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
generateArtifacts, getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType, prepare
-
-
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Returns the meta data assocated with this Deployer- Specified by:
getMetaData
in interfaceDeployer<ConnectorContainer,ConnectorApplication>
- Overrides:
getMetaData
in classJavaEEDeployer<ConnectorContainer,ConnectorApplication>
- Returns:
- the meta data for this Deployer
-
loadMetaData
public <T> T loadMetaData(Class<T> type, DeploymentContext context)
Loads the meta date associated with the application.- Specified by:
loadMetaData
in interfaceDeployer<ConnectorContainer,ConnectorApplication>
- Overrides:
loadMetaData
in classJavaEEDeployer<ConnectorContainer,ConnectorApplication>
- Parameters:
type
- type of metadata that this deployer has declared providing.context
- deployment context- Returns:
- the meta-data of type V
-
load
public ConnectorApplication load(ConnectorContainer container, DeploymentContext context)
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.- Specified by:
load
in interfaceDeployer<ConnectorContainer,ConnectorApplication>
- Overrides:
load
in classJavaEEDeployer<ConnectorContainer,ConnectorApplication>
- Parameters:
container
- in which the application will residecontext
- of the deployment- Returns:
- an ApplicationContainer instance identifying the running application
-
unload
public void unload(ConnectorApplication appContainer, DeploymentContext context)
Unload or stop a previously running application identified with the ContractProvider instance. The container will be stop upon return from this method.- Specified by:
unload
in interfaceDeployer<ConnectorContainer,ConnectorApplication>
- Parameters:
appContainer
- instance to be stoppedcontext
- 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:
clean
in interfaceDeployer<ConnectorContainer,ConnectorApplication>
- Overrides:
clean
in classJavaEEDeployer<ConnectorContainer,ConnectorApplication>
- Parameters:
dc
- deployment context
-
postConstruct
public void postConstruct()
The component has been injected with any dependency and will be placed into commission by the subsystem.- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
logFine
public void logFine(String message)
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListener
Process a Glassfish/Payara event- Specified by:
event
in interfaceEventListener
-
preDestroy
public void preDestroy()
- Specified by:
preDestroy
in interfaceorg.glassfish.hk2.api.PreDestroy
-
-