@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, unload
public MetaData getMetaData()
SimpleDeployer
getMetaData
in interface Deployer<JPAContainer,JPApplicationContainer>
getMetaData
in class SimpleDeployer<JPAContainer,JPApplicationContainer>
protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
generateArtifacts
in class SimpleDeployer<JPAContainer,JPApplicationContainer>
DeploymentException
protected void cleanArtifacts(DeploymentContext dc) throws DeploymentException
cleanArtifacts
in class SimpleDeployer<JPAContainer,JPApplicationContainer>
DeploymentException
public <V> V loadMetaData(Class<V> type, DeploymentContext context)
SimpleDeployer
loadMetaData
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)
SimpleDeployer
load
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.PostConstruct
public void event(EventListener.Event event)
EventListener
event
in interface EventListener
Copyright © 2019. All rights reserved.