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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    cleanArtifacts(org.glassfish.api.deployment.DeploymentContext deploymentContext)
     
    void
    event(org.glassfish.api.event.EventListener.Event<?> event)
     
    protected void
    generateArtifacts(org.glassfish.api.deployment.DeploymentContext dc)
     
    org.glassfish.api.deployment.MetaData
     
    load(JPAContainer container, org.glassfish.api.deployment.DeploymentContext context)
     
    <V> V
    loadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)
     
    void
     
    boolean
    prepare(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JPADeployer

      public JPADeployer()
  • Method Details

    • postConstruct

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

      public org.glassfish.api.deployment.MetaData getMetaData()
      Specified by:
      getMetaData in interface org.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>
      Overrides:
      getMetaData in class org.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
    • 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 deploymentContext) throws org.glassfish.deployment.common.DeploymentException
      Specified by:
      cleanArtifacts in class org.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:
      loadMetaData in interface org.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>
      Overrides:
      loadMetaData in class org.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:
      prepare in interface org.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>
      Overrides:
      prepare in class org.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
    • load

      public JPApplicationContainer load(JPAContainer container, org.glassfish.api.deployment.DeploymentContext context)
      Specified by:
      load in interface org.glassfish.api.deployment.Deployer<JPAContainer,JPApplicationContainer>
      Overrides:
      load in class org.glassfish.deployment.common.SimpleDeployer<JPAContainer,JPApplicationContainer>
    • event

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