Class SimpleDeployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>

java.lang.Object
org.glassfish.deployment.common.SimpleDeployer<T,U>
All Implemented Interfaces:
org.glassfish.api.deployment.Deployer<T,U>

public abstract class SimpleDeployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>> extends Object implements org.glassfish.api.deployment.Deployer<T,U>
Convenient superclass for Deployers which only do prepare and clean up and do not actually load/unload application
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clean(org.glassfish.api.deployment.DeploymentContext context)
    Clean any files and artifacts that were created during the execution of the prepare method.
    protected void
    cleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc)
    No-op
    protected void
    generateArtifacts(org.glassfish.api.deployment.DeploymentContext dc)
    No-op
    org.glassfish.api.deployment.MetaData
    Returns the meta data assocated with this Deployer
    load(T container, org.glassfish.api.deployment.DeploymentContext context)
    No-op
    <V> V
    loadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)
    Loads the meta date associated with the application.
    boolean
    prepare(org.glassfish.api.deployment.DeploymentContext dc)
    Prepares the application bits for running in the application server.
    void
    unload(U appContainer, org.glassfish.api.deployment.DeploymentContext context)
    No-op

    Methods inherited from class java.lang.Object

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

    • SimpleDeployer

      public SimpleDeployer()
  • Method Details

    • loadMetaData

      public <V> V loadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)
      Loads the meta date associated with the application.
      Specified by:
      loadMetaData in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
    • prepare

      public boolean prepare(org.glassfish.api.deployment.DeploymentContext dc)
      Prepares the application bits for running in the application server. For certain cases, this is generating non portable artifacts and other application specific tasks. Failure to prepare should throw an exception which will cause the overall deployment to fail.
      Specified by:
      prepare in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
      Parameters:
      dc - deployment context
      Returns:
      true if the prepare phase was successful
    • load

      public U load(T container, org.glassfish.api.deployment.DeploymentContext context)
      No-op
      Specified by:
      load in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
    • unload

      public void unload(U appContainer, org.glassfish.api.deployment.DeploymentContext context)
      No-op
      Specified by:
      unload in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
    • clean

      public void clean(org.glassfish.api.deployment.DeploymentContext context)
      Clean any files and artifacts that were created during the execution of the prepare method.
      Specified by:
      clean in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
      Parameters:
      context - deployment context
    • getMetaData

      public org.glassfish.api.deployment.MetaData getMetaData()
      Returns the meta data assocated with this Deployer
      Specified by:
      getMetaData in interface org.glassfish.api.deployment.Deployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer<?>>
      Returns:
      the meta data for this Deployer
    • generateArtifacts

      protected void generateArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws DeploymentException
      No-op
      Throws:
      DeploymentException
    • cleanArtifacts

      protected void cleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws DeploymentException
      No-op
      Throws:
      DeploymentException