@Service public class ConnectorDeployer extends JavaEEDeployer<ConnectorContainer,ConnectorApplication> implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy, EventListener
EventListener.Event<T>
appRegistry, habitat, undeploymentVisitor
Constructor and Description |
---|
ConnectorDeployer() |
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
|
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
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.
|
<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.
|
generateArtifacts, getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType, prepare
public MetaData getMetaData()
getMetaData
in interface Deployer<ConnectorContainer,ConnectorApplication>
getMetaData
in class JavaEEDeployer<ConnectorContainer,ConnectorApplication>
public <T> T loadMetaData(Class<T> type, DeploymentContext context)
loadMetaData
in interface Deployer<ConnectorContainer,ConnectorApplication>
loadMetaData
in class JavaEEDeployer<ConnectorContainer,ConnectorApplication>
type
- type of metadata that this deployer has declared providing.context
- deployment contextpublic ConnectorApplication load(ConnectorContainer container, DeploymentContext context)
load
in interface Deployer<ConnectorContainer,ConnectorApplication>
load
in class JavaEEDeployer<ConnectorContainer,ConnectorApplication>
container
- in which the application will residecontext
- of the deploymentpublic void unload(ConnectorApplication appContainer, DeploymentContext context)
unload
in interface Deployer<ConnectorContainer,ConnectorApplication>
appContainer
- instance to be stoppedcontext
- of the undeploymentpublic void clean(DeploymentContext dc)
clean
in interface Deployer<ConnectorContainer,ConnectorApplication>
clean
in class JavaEEDeployer<ConnectorContainer,ConnectorApplication>
dc
- deployment contextpublic void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
public void logFine(String message)
public void event(EventListener.Event event)
EventListener
event
in interface EventListener
public void preDestroy()
preDestroy
in interface org.glassfish.hk2.api.PreDestroy
Copyright © 2021. All rights reserved.