Class 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()  
    • Constructor Detail

      • JPADeployer

        public JPADeployer()
    • Method Detail

      • generateArtifacts

        protected void generateArtifacts​(org.glassfish.api.deployment.DeploymentContext dc)
                                  throws org.glassfish.deployment.common.DeploymentException
        Specified by:
        generateArtifacts in class org.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:
        cleanArtifacts in class org.glassfish.deployment.common.SimpleDeployer<JPAContainer,​JPApplicationContainer>
        Throws:
        org.glassfish.deployment.common.DeploymentException
      • 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:
        prepare in interface org.glassfish.api.deployment.Deployer<JPAContainer,​JPApplicationContainer>
        Overrides:
        prepare in class org.glassfish.deployment.common.SimpleDeployer<JPAContainer,​JPApplicationContainer>
      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • event

        public void event​(org.glassfish.api.event.EventListener.Event event)
        Specified by:
        event in interface org.glassfish.api.event.EventListener