@Service public class JPADeployer extends SimpleDeployer<JPAContainer,JPApplicationContainer> implements org.glassfish.hk2.api.PostConstruct, EventListener
EventListener.Event<T>| Constructor and Description |
|---|
JPADeployer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanArtifacts(DeploymentContext dc) |
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
protected void |
generateArtifacts(DeploymentContext dc) |
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
JPApplicationContainer |
load(JPAContainer container,
DeploymentContext context)
No-op
|
<V> V |
loadMetaData(Class<V> type,
DeploymentContext context)
Loads the meta date associated with the application.
|
void |
postConstruct() |
boolean |
prepare(DeploymentContext context)
EMFs for refered pus are created and stored in JPAApplication instance.
|
clean, unloadpublic MetaData getMetaData()
SimpleDeployergetMetaData in interface Deployer<JPAContainer,JPApplicationContainer>getMetaData in class SimpleDeployer<JPAContainer,JPApplicationContainer>protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
generateArtifacts in class SimpleDeployer<JPAContainer,JPApplicationContainer>DeploymentExceptionprotected void cleanArtifacts(DeploymentContext dc) throws DeploymentException
cleanArtifacts in class SimpleDeployer<JPAContainer,JPApplicationContainer>DeploymentExceptionpublic <V> V loadMetaData(Class<V> type, DeploymentContext context)
SimpleDeployerloadMetaData in interface Deployer<JPAContainer,JPApplicationContainer>loadMetaData in class SimpleDeployer<JPAContainer,JPApplicationContainer>type - type of meta-data that this deployer has declared providing.public boolean prepare(DeploymentContext context)
prepare in interface Deployer<JPAContainer,JPApplicationContainer>prepare in class SimpleDeployer<JPAContainer,JPApplicationContainer>context - deployment contextpublic JPApplicationContainer load(JPAContainer container, DeploymentContext context)
SimpleDeployerload in interface Deployer<JPAContainer,JPApplicationContainer>load in class SimpleDeployer<JPAContainer,JPApplicationContainer>container - in which the application will residecontext - of the deploymentpublic void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic void event(EventListener.Event event)
EventListenerevent in interface EventListenerCopyright © 2017. All rights reserved.