Class ModuleInfo

java.lang.Object
org.glassfish.internal.data.ModuleInfo
Direct Known Subclasses:
ApplicationInfo

public class ModuleInfo extends Object
Each module of an application has an associated module info instance keeping the list of engines in which that module is loaded.
Author:
Jerome Dochez
  • Field Details

  • Constructor Details

  • Method Details

    • sendEvent

      protected void sendEvent(org.glassfish.api.event.EventListener.Event<?> event, boolean asynchronously)
    • registerEventListener

      protected void registerEventListener(org.glassfish.api.event.EventListener listener)
    • unregisterEventListener

      protected void unregisterEventListener(org.glassfish.api.event.EventListener listener)
    • getEngineRefs

      public Set<EngineRef> getEngineRefs()
    • _getEngineRefs

      protected Set<EngineRef> _getEngineRefs()
    • getClassLoaders

      public Set<ClassLoader> getClassLoaders()
    • getModuleClassLoader

      public ClassLoader getModuleClassLoader()
    • cleanClassLoaders

      public void cleanClassLoaders()
    • addMetaData

      public void addMetaData(Object o)
    • getMetaData

      public <T> T getMetaData(Class<T> c)
    • getMetaData

      public Object getMetaData(String className)
    • getName

      public String getName()
    • getModuleProps

      public Properties getModuleProps()
    • getSniffers

      public Collection<org.glassfish.api.container.Sniffer> getSniffers()
      Returns the list of sniffers that participated in loaded this application
      Returns:
      array of sniffer that loaded the application's module
    • load

      public void load(ExtendedDeploymentContext context, ProgressTracker tracker) throws Exception
      Throws:
      Exception
    • getEngineRefForContainer

      public <T extends org.glassfish.api.container.Container> EngineRef getEngineRefForContainer(Class<T> type)
    • start

      public void start(org.glassfish.api.deployment.DeploymentContext context, ProgressTracker tracker) throws Exception
      Throws:
      Exception
    • stop

      public void stop(ExtendedDeploymentContext context, Logger logger)
    • unload

      public void unload(ExtendedDeploymentContext context)
    • clean

      public void clean(ExtendedDeploymentContext context) throws Exception
      Throws:
      Exception
    • suspend

      public boolean suspend(Logger logger)
    • resume

      public boolean resume(Logger logger)
    • save

      public void save(com.sun.enterprise.config.serverbeans.Module module) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException
      Saves its state to the configuration. this method must be called within a transaction to the configured module instance.
      Parameters:
      module - the module being persisted
      Throws:
      org.jvnet.hk2.config.TransactionFailure
      PropertyVetoException
    • toString

      public String toString()
      Returns simple name of this class and name of the module.
      Overrides:
      toString in class Object