org.glassfish.deployment.common
Class DummyApplication

java.lang.Object
  extended by 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
DummyApplication()
           
 
Method Summary
 ClassLoader getClassLoader()
          Returns the class loader associated with this application
 Object getDescriptor()
          Returns the deployment descriptor associated with this application
 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

DummyApplication

public DummyApplication()
Method Detail

start

public boolean start(ApplicationContext startupContext)
Specified by:
start in interface ApplicationContainer<Object>

stop

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

suspend

public boolean suspend()
Suspends this application container.

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

resume

public boolean resume()
Resumes this application container.

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

getDescriptor

public Object getDescriptor()
Returns the deployment descriptor associated with this application

Specified by:
getDescriptor in interface ApplicationContainer<Object>
Returns:
deployment descriptor if they exist or null if not


Copyright © 2012 GlassFish Community. All Rights Reserved.