Package org.glassfish.ejb.startup
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 Summary
Constructors Constructor Description EjbApplication(EjbBundleDescriptorImpl bundle, org.glassfish.api.deployment.DeploymentContext dc, ClassLoader cl, org.glassfish.hk2.api.ServiceLocator services)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns the class loader associated with this applicationCollection<EjbDescriptor>getDescriptor()EjbBundleDescriptorImplgetEjbBundleDescriptor()booleanisStarted()booleanresume()Resumes this application container.booleanstart(org.glassfish.api.deployment.ApplicationContext startupContext)booleanstop(org.glassfish.api.deployment.ApplicationContext stopContext)booleansuspend()Suspends this application container.
-
-
-
Constructor Detail
-
EjbApplication
public EjbApplication(EjbBundleDescriptorImpl bundle, org.glassfish.api.deployment.DeploymentContext dc, ClassLoader cl, org.glassfish.hk2.api.ServiceLocator services)
-
-
Method Detail
-
getDescriptor
public Collection<EjbDescriptor> getDescriptor()
- Specified by:
getDescriptorin interfaceorg.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:
startin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>- Throws:
Exception
-
stop
public boolean stop(org.glassfish.api.deployment.ApplicationContext stopContext)
- Specified by:
stopin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
-
suspend
public boolean suspend()
Suspends this application container.- Specified by:
suspendin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume()
Resumes this application container.- Specified by:
resumein interfaceorg.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:
getClassLoaderin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>- Returns:
- ClassLoader for this app
-
-