org.glassfish.ejb.startup
Class EjbApplication

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

@Service(name="ejb")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class EjbApplication
extends Object
implements 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
EjbApplication(EjbBundleDescriptor bundle, DeploymentContext dc, ClassLoader cl, org.jvnet.hk2.component.Habitat habitat, EJBSecurityManagerFactory ejbSecMgrFactory)
           
 
Method Summary
 ClassLoader getClassLoader()
          Returns the class loader associated with this application
 Collection<EjbDescriptor> getDescriptor()
           
 EjbBundleDescriptor getEjbBundleDescriptor()
           
 boolean isStarted()
           
 boolean resume()
          Resumes this application container.
 boolean start(ApplicationContext startupContext)
           
 boolean stop(ApplicationContext stopContext)
           
 boolean suspend()
          Suspends this application container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbApplication

public EjbApplication(EjbBundleDescriptor bundle,
                      DeploymentContext dc,
                      ClassLoader cl,
                      org.jvnet.hk2.component.Habitat habitat,
                      EJBSecurityManagerFactory ejbSecMgrFactory)
Method Detail

getDescriptor

public Collection<EjbDescriptor> getDescriptor()
Specified by:
getDescriptor in interface ApplicationContainer<Collection<EjbDescriptor>>

getEjbBundleDescriptor

public EjbBundleDescriptor getEjbBundleDescriptor()

isStarted

public boolean isStarted()

start

public boolean start(ApplicationContext startupContext)
              throws Exception
Specified by:
start in interface ApplicationContainer<Collection<EjbDescriptor>>
Throws:
Exception

stop

public boolean stop(ApplicationContext stopContext)
Specified by:
stop in interface ApplicationContainer<Collection<EjbDescriptor>>

suspend

public boolean suspend()
Suspends this application container.

Specified by:
suspend in interface ApplicationContainer<Collection<EjbDescriptor>>
Returns:
true if suspending was successful, false otherwise.

resume

public boolean resume()
Resumes this application container.

Specified by:
resume in interface 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 ApplicationContainer<Collection<EjbDescriptor>>
Returns:
ClassLoader for this app


Copyright © 2012 GlassFish Community. All Rights Reserved.