Package org.glassfish.resources.module
Class ResourcesApplication
- java.lang.Object
-
- org.glassfish.resources.module.ResourcesApplication
-
- All Implemented Interfaces:
ApplicationContainer
@Service @PerLookup public class ResourcesApplication extends Object implements ApplicationContainer
Service to hold all resourcesThis can be started or stopped
-
-
Constructor Summary
Constructors Constructor Description ResourcesApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationName()
ClassLoader
getClassLoader()
Returns the class loader associated with this applicationObject
getDescriptor()
Returns the deployment descriptor associated with this applicationboolean
resume()
Resumes this application container.void
setApplicationName(String applicationName)
boolean
start(ApplicationContext startupContext)
Starts an application container.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
-
Methods inherited from interface org.glassfish.api.deployment.ApplicationContainer
initialize, reload
-
-
-
-
Method Detail
-
setApplicationName
public void setApplicationName(String applicationName)
-
getApplicationName
public String getApplicationName()
-
getDescriptor
public Object getDescriptor()
Description copied from interface:ApplicationContainer
Returns the deployment descriptor associated with this application- Specified by:
getDescriptor
in interfaceApplicationContainer
- Returns:
- deployment descriptor if they exist or null if not
-
start
public boolean start(ApplicationContext startupContext) throws Exception
Description copied from interface:ApplicationContainer
Starts an application container. ContractProvider starting should not throw an exception but rather should use their prefered Logger instance to log any issue they encounter while starting. Returning false from a start mean that the container failed to start- Specified by:
start
in interfaceApplicationContainer
- Parameters:
startupContext
- the start up context- Returns:
- true if the container startup was successful.
- Throws:
Exception
- if this application container could not be started
-
stop
public boolean stop(ApplicationContext stopContext)
- Specified by:
stop
in interfaceApplicationContainer
-
suspend
public boolean suspend()
Description copied from interface:ApplicationContainer
Suspends this application container.- Specified by:
suspend
in interfaceApplicationContainer
- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume() throws Exception
Description copied from interface:ApplicationContainer
Resumes this application container.- Specified by:
resume
in interfaceApplicationContainer
- Returns:
- true if resumption was successful, false otherwise
- Throws:
Exception
- if this application container could not be resumed
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:ApplicationContainer
Returns the class loader associated with this application- Specified by:
getClassLoader
in interfaceApplicationContainer
- Returns:
- ClassLoader for this app
-
-