Package org.glassfish.persistence.jpa
Class JPADeployer
- java.lang.Object
-
- org.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
-
- org.glassfish.persistence.jpa.JPADeployer
-
- All Implemented Interfaces:
org.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>,org.glassfish.api.event.EventListener,org.glassfish.hk2.api.PostConstruct
@Service public class JPADeployer extends org.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer> implements org.glassfish.hk2.api.PostConstruct, org.glassfish.api.event.EventListener
Deployer for JPA applications- Author:
- Mitesh Meswani
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
org.glassfish.api.event.EventListener.Event<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description JPADeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc)voidevent(org.glassfish.api.event.EventListener.Event event)protected voidgenerateArtifacts(org.glassfish.api.deployment.DeploymentContext dc)org.glassfish.api.deployment.MetaDatagetMetaData()JPApplicationContainerload(JPAContainer container, org.glassfish.api.deployment.DeploymentContext context)<V> VloadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)voidpostConstruct()booleanprepare(org.glassfish.api.deployment.DeploymentContext context)EMFs for refered pus are created and stored in JPAApplication instance.
-
-
-
Method Detail
-
getMetaData
public org.glassfish.api.deployment.MetaData getMetaData()
- Specified by:
getMetaDatain interfaceorg.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>- Overrides:
getMetaDatain classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
-
generateArtifacts
protected void generateArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws org.glassfish.deployment.common.DeploymentException- Specified by:
generateArtifactsin classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>- Throws:
org.glassfish.deployment.common.DeploymentException
-
cleanArtifacts
protected void cleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws org.glassfish.deployment.common.DeploymentException- Specified by:
cleanArtifactsin classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>- Throws:
org.glassfish.deployment.common.DeploymentException
-
loadMetaData
public <V> V loadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)
- Specified by:
loadMetaDatain interfaceorg.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>- Overrides:
loadMetaDatain classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
-
prepare
public boolean prepare(org.glassfish.api.deployment.DeploymentContext context)
EMFs for refered pus are created and stored in JPAApplication instance. The JPAApplication instance is stored in given DeploymentContext to be retrieved by load- Specified by:
preparein interfaceorg.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>- Overrides:
preparein classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
-
load
public JPApplicationContainer load(JPAContainer container, org.glassfish.api.deployment.DeploymentContext context)
- Specified by:
loadin interfaceorg.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>- Overrides:
loadin classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
event
public void event(org.glassfish.api.event.EventListener.Event event)
- Specified by:
eventin interfaceorg.glassfish.api.event.EventListener
-
-