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 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 eventMetaDatagetMetaData()Returns the meta data assocated with this DeployerConnectorApplicationload(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> TloadMetaData(Class<T> type, DeploymentContext context)Loads the meta date associated with the application.voidlogFine(String message)voidpostConstruct()The component has been injected with any dependency and will be placed into commission by the subsystem.voidpreDestroy()voidunload(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:
getMetaDatain interfaceDeployer<ConnectorContainer,ConnectorApplication>- Overrides:
getMetaDatain 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:
loadMetaDatain interfaceDeployer<ConnectorContainer,ConnectorApplication>- Overrides:
loadMetaDatain 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:
loadin interfaceDeployer<ConnectorContainer,ConnectorApplication>- Overrides:
loadin 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:
unloadin 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:
cleanin interfaceDeployer<ConnectorContainer,ConnectorApplication>- Overrides:
cleanin 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:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
logFine
public void logFine(String message)
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListenerProcess a Glassfish/Payara event- Specified by:
eventin interfaceEventListener
-
preDestroy
public void preDestroy()
- Specified by:
preDestroyin interfaceorg.glassfish.hk2.api.PreDestroy
-
-