Class EjbApplication

java.lang.Object
org.glassfish.ejb.startup.EjbApplication
All Implemented Interfaces:
org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>

@Service(name="ejb") @PerLookup public class EjbApplication extends Object implements org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
This class represents a logical collection of EJB components contained in one ejb-jar or one .war.
Author:
Mahesh Kannan
  • Constructor Details

    • EjbApplication

      public EjbApplication(EjbBundleDescriptorImpl bundle, org.glassfish.api.deployment.DeploymentContext dc, ClassLoader cl, org.glassfish.hk2.api.ServiceLocator services)
  • Method Details

    • getDescriptor

      public Collection<EjbDescriptor> getDescriptor()
      Specified by:
      getDescriptor in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
    • getEjbBundleDescriptor

      public EjbBundleDescriptorImpl getEjbBundleDescriptor()
    • isStarted

      public boolean isStarted()
    • start

      public boolean start(org.glassfish.api.deployment.ApplicationContext startupContext) throws Exception
      Specified by:
      start in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
      Throws:
      Exception
    • stop

      public boolean stop(org.glassfish.api.deployment.ApplicationContext stopContext)
      Specified by:
      stop in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
    • suspend

      public boolean suspend()
      Suspends this application container.
      Specified by:
      suspend in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
      Returns:
      true if suspending was successful, false otherwise.
    • resume

      public boolean resume()
      Resumes this application container.
      Specified by:
      resume in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
      Returns:
      true if resumption was successful, false otherwise.
    • getClassLoader

      public ClassLoader getClassLoader()
      Returns the class loader associated with this application
      Specified by:
      getClassLoader in interface org.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
      Returns:
      ClassLoader for this app