Save This Page
Home » glassfish-v2ur2-b04-src » com.sun.enterprise.server » [javadoc | source]
com.sun.enterprise.server
abstract class: AbstractLoader [javadoc | source]
java.lang.Object
   com.sun.enterprise.server.AbstractLoader

All Implemented Interfaces:
    EntryPoint

Direct Known Subclasses:
    EJBModuleLoader, ConnectorModuleLoader, ApplicationLoader, DummyWebModuleLoader, TomcatApplicationLoader, ApplicationClientModuleLoader

Base loader to load and unload applicaton and stand alone module.
Field Summary
protected  String id    the registration name for this application 
 ClassLoader parentClassLoader    parent class loader of ejb class loader 
 ClassLoader ejbClassLoader    ejb class loader used by this application 
 Application application    deployment descriptor object for this application 
protected  boolean robFlag     
protected  ApplicationRegistry registry    application registry 
protected  BaseManager configManager    encapsulates application related information 
static  Logger _logger    logger to log loader messages 
protected  boolean cascade    This variable tells whether to load/unload pools and resources recursively. 
protected  int loadUnloadAction    Possible values for this: 0. LOAD_UNSET is before initialization For loading: 1. LOAD_ALL is for loading regular application 2. LOAD_RAR is for loading the rar part of the embedded rar 3. LOAD_REST is for loading the rest part of the embedded rar Embedded rar is loaded in two steps so we can create connector resources in between. For unloading: 4. UNLOAD_ALL is for unloading regular application 5. UNLOAD_RAR is for unloading the rar part of the embedded rar 6. UNLOAD_REST is for unloading the rest part of the embedded rar Embedded rar is unloaded in two steps so we can delete connector resources in between. 
Constructor:
 AbstractLoader(String id,
    ClassLoader parentClassLoader,
    BaseManager configMgr) 
    Constructor. ApplicationLoader loads an application or stand alone ejb module.
    Parameters:
    id - the registration name of this application
    parentClassLoader - the parent class loader
    configMgr - the config manager for this VS
Method from com.sun.enterprise.server.AbstractLoader Summary:
createLeafMBean,   createLeafMBeans,   createRootMBean,   deleteLeafAndRootMBeans,   deleteLeafMBean,   deleteLeafMBeans,   deleteRootMBean,   doLoad,   done,   generateEntryContext,   getApplication,   getCascade,   getClassLoader,   getConfigContext,   getLoadUnloadAction,   initializeLoader,   initializeLoader,   load,   loadEjbs,   loadPersistenceUnits,   loadRars,   loadWebserviceEndpoints,   notifyAppEvent,   notifyEjbEvent,   setCascade,   setConfigContext,   setLoadUnloadAction,   setState,   unload,   unloadEjbs,   unloadPersistenceUnits,   unloadRars,   unloadWebserviceEndpoints
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.enterprise.server.AbstractLoader Detail:
 abstract  void createLeafMBean(Descriptor descriptor) throws MBeanException
    Create jsr77 mBean for the leaf object The leaf mBean correspond to the child object of rootMBean. For an ejb stand-alone module it will be ejb and for a web stand-alone module it will be servlet and for a connector stand-alone module it will be resource adapter
 abstract  void createLeafMBeans() throws MBeanException
    Create jsr77 mBeans for components within root mBean The leaf mBeans correspond to the child objects of rootMBean. For an ejb stand-alone module it will be ejbs and for a web stand-alone module it will be servlets and for a connector stand-alone module it will be resource adapters
 abstract  void createRootMBean() throws MBeanException
    Create jsr77 root mBean The root mBean corresponds to either an application or stand-alone module depending on j2ee type
 abstract  void deleteLeafAndRootMBeans() throws MBeanException
    Delete jsr77 mBeans for the root and its' components
 abstract  void deleteLeafMBean(Descriptor descriptor) throws MBeanException
    Delete jsr77 mBean for the leaf object The leaf mBean correspond to the child object of rootMBean. For an ejb stand-alone module it will be ejb and for a web stand-alone module it will be servlet and for a connector stand-alone module it will be resource adapter
 abstract  void deleteLeafMBeans() throws MBeanException
    Delete jsr77 mBeans for components within root mBean The leaf mBeans correspond to the child objects of rootMBean. For an ejb stand-alone module it will be ejbs and for a web stand-alone module it will be servlets and for a connector stand-alone module it will be resource adapters
 abstract  void deleteRootMBean() throws MBeanException
    Delete jsr77 root mBean The root mBean corresponds to either an application or stand-alone module depending on j2ee type
 abstract boolean doLoad(boolean jsr77)
    Loads a deployed application or stand alone module. If jsr77 is true then corresponding jsr77 mBeans will be created during load time.
 protected  void done() 
    Helps garbage collector by assigning member variables to null. This is called from unload.
 public  void generateEntryContext(Object context) 
 Application getApplication() 
    Returns the deployment descriptor object used by this loader.
 protected boolean getCascade() 
 ClassLoader getClassLoader() 
    Returns the ejb class loader used by this loader.
 ConfigContext getConfigContext() 
 protected int getLoadUnloadAction() 
 protected  void initializeLoader(ClassLoader clazzloader) 
    Initializes this loader to the given classloader
 protected  void initializeLoader(String[] classPaths,
    String moduleRoot,
    ModuleType moduleType) 
    Initializes this loader by creating the ejb class loader.
 boolean load(boolean jsr77) 
    Loads a deployed application or stand alone module. Verifies that the module's directory exists and is valid before trying to load the module, so as to display a useful warning in the log without displaying a stack trace from later failures (such as failed attempts to load classes from the module). If jsr77 is true then corresponding jsr77 mBeans will be created during load time.
 protected boolean loadEjbs(boolean jsr77) 
    Creates the bean containers for all ejbs. If jsr77 is true then corresponding jsr77 mBeans will be created during load time.
 protected boolean loadPersistenceUnits() 
    Loads all the EJB 3.0 persistence entities bundled in this application.
 protected boolean loadRars(boolean jsr77) 
    Load the rars of that application If jsr77 is true then corresponding jsr77 mBeans will be created during load time.
 protected boolean loadWebserviceEndpoints(boolean jsr77) 
    Loads all the Web Service Management MBeans. If jsr77 is true then corresponding jsr77 mBeans will be created during load time.
 protected  void notifyAppEvent(int eventType) 
 protected  void notifyEjbEvent(int eventType,
    EjbDescriptor desc) 
 protected  void setCascade(boolean cascade) 
  void setConfigContext(ConfigContext dynamicConfigContext) 
 protected  void setLoadUnloadAction(int loadUnloadAction) 
 abstract  void setState(int state) throws MBeanException
    Set state for jsr77 root mBean The state can be set for a root mBean and it could be one of STARTING, RUNNING, STOPPING, STOPPED, or FAILED
 abstract boolean unload(boolean jsr77)
    Unloads a deployed application or stand alone module. If jsr77 is true then corresponding jsr77 mBeans will be deleted during unload time.
 protected boolean unloadEjbs(boolean jsr77) 
    Unloads all the ejb bean containers. If jsr77 is true then corresponding jsr77 mBeans will be deleted during unload time.
 protected boolean unloadPersistenceUnits() 
    Unloads all the EJB 3.0 persistence entities bundled in this application.
 protected boolean unloadRars(boolean jsr77) 
    Unloads all the rar. If jsr77 is true then corresponding jsr77 mBeans will be deleted during unload time.
 protected boolean unloadWebserviceEndpoints(boolean jsr77) 
    Unloads all the Web Service Management MBeans. If jsr77 is true then corresponding jsr77 mBeans will be deleted during unload time.