Package org.glassfish.deployment.common
Class DummyApplication
java.lang.Object
org.glassfish.deployment.common.DummyApplication
- All Implemented Interfaces:
org.glassfish.api.deployment.ApplicationContainer<Object>
public class DummyApplication
extends Object
implements org.glassfish.api.deployment.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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the class loader associated with this applicationReturns the deployment descriptor associated with this applicationbooleanresume()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
-
DummyApplication
public DummyApplication()
-
-
Method Details
-
start
public boolean start(org.glassfish.api.deployment.ApplicationContext startupContext) - Specified by:
startin interfaceorg.glassfish.api.deployment.ApplicationContainer<Object>
-
stop
public boolean stop(org.glassfish.api.deployment.ApplicationContext stopContext) - Specified by:
stopin interfaceorg.glassfish.api.deployment.ApplicationContainer<Object>
-
suspend
public boolean suspend()Suspends this application container.- Specified by:
suspendin interfaceorg.glassfish.api.deployment.ApplicationContainer<Object>- Returns:
- true if suspending was successful, false otherwise.
-
resume
public boolean resume()Resumes this application container.- Specified by:
resumein interfaceorg.glassfish.api.deployment.ApplicationContainer<Object>- 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<Object>- Returns:
- ClassLoader for this app
-
getDescriptor
Returns the deployment descriptor associated with this application- Specified by:
getDescriptorin interfaceorg.glassfish.api.deployment.ApplicationContainer<Object>- Returns:
- deployment descriptor if they exist or null if not
-