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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanArtifacts(org.glassfish.api.deployment.DeploymentContext deploymentContext) voidevent(org.glassfish.api.event.EventListener.Event<?> event) protected voidgenerateArtifacts(org.glassfish.api.deployment.DeploymentContext dc) org.glassfish.api.deployment.MetaDataload(JPAContainer container, org.glassfish.api.deployment.DeploymentContext context) <V> VloadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context) voidbooleanprepare(org.glassfish.api.deployment.DeploymentContext context) EMFs for refered pus are created and stored in JPAApplication instance.Methods inherited from class org.glassfish.deployment.common.SimpleDeployer
clean, unload
-
Constructor Details
-
JPADeployer
public JPADeployer()
-
-
Method Details
-
postConstruct
public void postConstruct()- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
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 deploymentContext) throws org.glassfish.deployment.common.DeploymentException - Specified by:
cleanArtifactsin classorg.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer> - Throws:
org.glassfish.deployment.common.DeploymentException
-
loadMetaData
- 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>
-
event
public void event(org.glassfish.api.event.EventListener.Event<?> event) - Specified by:
eventin interfaceorg.glassfish.api.event.EventListener
-