Methods Summary |
---|
void | addAppId2ClassLoader(java.lang.String appID, java.lang.ClassLoader classLoader)Stores class loader against the given registration name for application.
appID2ClassLoader.put(appID, classLoader);
|
void | addClassLoader2Application(java.lang.ClassLoader classLoader, com.sun.enterprise.deployment.Application app)Stores the deployment descriptor hierarchy against the class loader.
classLoader2Application.put(classLoader, app);
|
void | addDescriptor2Container(com.sun.enterprise.deployment.EjbDescriptor desc, com.sun.ejb.Container container)Stores the given deployment descriptor and ejb container in a table.
descriptor2Container.put(desc, container);
|
void | addModuleId2ClassLoader(java.lang.String moduleID, java.lang.ClassLoader classLoader)Stores class loader against the given registration name for stand alone
module. We are keeping separate table because of possible name
space collision.
moduleID2ClassLoader.put(moduleID, classLoader);
|
java.util.Collection | getAllEjbContainers()Returns all the ejb containers available in this registry.
This includes J2EE applications and stand alone ejb modules.
Collection containers = null;
if (this.descriptor2Container != null) {
containers = this.descriptor2Container.values();
}
return containers;
|
public com.sun.enterprise.deployment.Application | getApplication(java.lang.ClassLoader loader)Return the Application for the given classloader.
It is assumed that there is a 1-to-1 mapping
from app to loader. This is called at runtime from the
Persistence Manager.
return (Application) classLoader2Application.get(loader);
|
public java.lang.ClassLoader | getClassLoaderForApplication(java.lang.String appID)Get the class loader of a given application.
Used in ServletDeployerImpl
return (ClassLoader) appID2ClassLoader.get(appID);
|
public java.lang.ClassLoader | getClassLoaderForModule(java.lang.String moduleID)Get the class loader of the given stand alone module.
return (ClassLoader) moduleID2ClassLoader.get(moduleID);
|
public com.sun.ejb.Container | getContainer(com.sun.enterprise.deployment.EjbDescriptor desc)Return the Container for the given EjbDescriptor.
This is called at runtime from the Persistence Manager.
return (Container) descriptor2Container.get(desc);
|
public static com.sun.enterprise.server.ApplicationRegistry | getInstance()Returns the singleton instance.
_instance = new ApplicationRegistry();
return _instance;
|
boolean | isUnique(long uniqueId)Returns true if the given id is not already present in this registry.
It adds the specified unique id to the registry if not already
present. This is used to detect collision between two ejb bean
containers.
return this.uniqueIds.add( new Long(uniqueId) );
|
java.lang.ClassLoader | removeAppId2ClassLoader(java.lang.String appID)Removes the class loader associated with the given registration name.
return (ClassLoader) appID2ClassLoader.remove(appID);
|
com.sun.enterprise.deployment.Application | removeClassLoader2Application(java.lang.ClassLoader cl)Removes the deployment descriptor hierarchy associated with the given
class loader.
return (Application) classLoader2Application.remove(cl);
|
com.sun.ejb.Container | removeDescriptor2Container(com.sun.enterprise.deployment.EjbDescriptor desc)Removes the ejb container associated with the given deployment
descriptor.
return (Container) descriptor2Container.remove(desc);
|
java.lang.ClassLoader | removeModuleId2ClassLoader(java.lang.String moduleID)Removes the class loader associated with the given stand alone module
registration name. We are keeping separate table because of possible
name space collision.
return (ClassLoader) moduleID2ClassLoader.remove(moduleID);
|
boolean | removeUniqueId(long uniqueId)Removes the given id from this registry.
return this.uniqueIds.remove( new Long(uniqueId) );
|