Package org.glassfish.deployment.common
Class DummyApplication
- java.lang.Object
-
- org.glassfish.deployment.common.DummyApplication
-
- All Implemented Interfaces:
ApplicationContainer<Object>
public class DummyApplication extends Object implements ApplicationContainer<Object>
A dummy implementation of ApplicationContainer class. It can be used by Deployers which only do prepare and clean and don't actually do load/unload of the application.
-
-
Constructor Summary
Constructors Constructor Description DummyApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns the class loader associated with this applicationObjectgetDescriptor()Returns the deployment descriptor associated with this applicationbooleanresume()Resumes this application container.booleanstart(ApplicationContext startupContext)Starts an application container.booleanstop(ApplicationContext stopContext)booleansuspend()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
-
start
public boolean start(ApplicationContext startupContext)
Description copied from interface:ApplicationContainerStarts 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:
startin interfaceApplicationContainer<Object>- Parameters:
startupContext- the start up context- Returns:
- true if the container startup was successful.
-
stop
public boolean stop(ApplicationContext stopContext)
- Specified by:
stopin interfaceApplicationContainer<Object>
-
suspend
public boolean suspend()
Suspends this application container.- Specified by:
suspendin interfaceApplicationContainer<Object>- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume()
Resumes this application container.- Specified by:
resumein interfaceApplicationContainer<Object>- Returns:
- true if resumption was successful, false otherwise.
-
getClassLoader
public ClassLoader getClassLoader()
Returns the class loader associated with this application- Specified by:
getClassLoaderin interfaceApplicationContainer<Object>- Returns:
- ClassLoader for this app
-
getDescriptor
public Object getDescriptor()
Returns the deployment descriptor associated with this application- Specified by:
getDescriptorin interfaceApplicationContainer<Object>- Returns:
- deployment descriptor if they exist or null if not
-
-