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
ConstructorsConstructorDescriptionEjbApplication(EjbBundleDescriptorImpl bundle, org.glassfish.api.deployment.DeploymentContext dc, ClassLoader cl, org.glassfish.hk2.api.ServiceLocator services) -
Method Summary
Modifier and TypeMethodDescriptionReturns the class loader associated with this applicationbooleanbooleanresume()Resumes this application container.booleanstart(org.glassfish.api.deployment.ApplicationContext startupContext) booleanstop(org.glassfish.api.deployment.ApplicationContext stopContext) booleansuspend()Suspends this application container.
-
Constructor Details
-
EjbApplication
public EjbApplication(EjbBundleDescriptorImpl bundle, org.glassfish.api.deployment.DeploymentContext dc, ClassLoader cl, org.glassfish.hk2.api.ServiceLocator services)
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>
-
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
Returns the class loader associated with this application- Specified by:
getClassLoaderin interfaceorg.glassfish.api.deployment.ApplicationContainer<Collection<EjbDescriptor>>- Returns:
- ClassLoader for this app
-