FileDocCategorySizeDatePackage
DummyWebModuleLoader.javaAPI DocGlassfish v2 API4286Mon Jun 18 16:14:54 BST 2007com.sun.enterprise.server

DummyWebModuleLoader

public class DummyWebModuleLoader extends AbstractLoader
This is just a dummy module loader for web application. The only responsibility of this class is to generate a notifictation event so that ondemand init code can load the web applications as the appserver starts up.
author
Binod PG

Fields Summary
static Logger
_logger
Constructors Summary
public DummyWebModuleLoader(String id, ClassLoader loader, com.sun.enterprise.instance.WebModulesManager manager)
Constructs a dummy loader. It generates a descriptor representing the webapp.


                     
           
        super(id, loader, manager);
        try {
            this.application = manager.getDescriptor(id, manager.getLocation(id));
        } catch (ConfigException confEx) {
            _logger.log(Level.SEVERE,"loader.configexception", confEx);
        }
    
Methods Summary
public voidcreateLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)

    
public voidcreateLeafMBeans()

    
public voidcreateRootMBean()

    
public voiddeleteLeafAndRootMBeans()

    
public voiddeleteLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)

    
public voiddeleteLeafMBeans()

    
public voiddeleteRootMBean()

    
public booleandoLoad(boolean jsr77)

        notifyAppEvent(ApplicationEvent.BEFORE_APPLICATION_LOAD);
        loadWebserviceEndpoints(jsr77);
        notifyAppEvent(ApplicationEvent.AFTER_APPLICATION_LOAD);
        return true;
    
public voidsetState(int state)

    
public booleanunload(boolean jsr77)

        unloadWebserviceEndpoints(jsr77);
        notifyAppEvent(ApplicationEvent.AFTER_APPLICATION_UNLOAD);
        return true;