|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classloading.spi.dependency.ClassLoading
public class ClassLoading
ClassLoading.
Constructor Summary | |
---|---|
ClassLoading()
|
Method Summary | |
---|---|
void |
addGlobalCapabilitiesProvider(GlobalCapabilitiesProvider provider)
Add a global capabilities provider |
void |
addModule(Module module)
Add a module |
boolean |
addModuleRegistry(ModuleRegistry moduleRegistry)
Add module registry. |
protected Domain |
createDomain(String domainName,
String parentDomainName,
boolean parentFirst)
Create a domain |
static ClassLoader |
getClassLoaderForModule(Module module)
Find the classloader for a module |
protected Domain |
getDomain(String domainName)
Get a domain |
protected Domain |
getDomain(String domainName,
String parentDomainName,
boolean parentFirst)
Get or create the domain |
static Module |
getModuleForClassLoader(ClassLoader loader)
Find the module for a classloader |
void |
removeGlobalCapabilitiesProvider(GlobalCapabilitiesProvider provider)
Remove a global capabilities provider |
void |
removeModule(Module module)
Remove a module |
boolean |
removeModuleRegistry(ModuleRegistry moduleRegistry)
Remove module registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassLoading()
Method Detail |
---|
public void addModule(Module module)
module
- the module
IllegalArgumentException
- for a null modulepublic void removeModule(Module module)
module
- the module
IllegalArgumentException
- for a null modulepublic void addGlobalCapabilitiesProvider(GlobalCapabilitiesProvider provider)
provider
- the provider
IllegalArgumentException
- for a null providerpublic void removeGlobalCapabilitiesProvider(GlobalCapabilitiesProvider provider)
provider
- the provider
IllegalArgumentException
- for a null providerprotected Domain getDomain(String domainName, String parentDomainName, boolean parentFirst)
domainName
- the domain nameparentDomainName
- the parent domain nameparentFirst
- whether to look in the parent first
IllegalArgumentException
- for a null domainprotected Domain getDomain(String domainName)
domainName
- the domain name
protected Domain createDomain(String domainName, String parentDomainName, boolean parentFirst)
domainName
- the domain nameparentDomainName
- the parent domain nameparentFirst
- whether to look in the parent first
IllegalArgumentException
- for a null domain namepublic static Module getModuleForClassLoader(ClassLoader loader)
loader
- the classloader
SecurityException
- if the caller doesn't have new RuntimePermision("getClassLoader")
public static ClassLoader getClassLoaderForModule(Module module)
module
- the module
SecurityException
- if the caller doesn't have new RuntimePermision("getClassLoader")
public boolean addModuleRegistry(ModuleRegistry moduleRegistry)
moduleRegistry
- the module registry
public boolean removeModuleRegistry(ModuleRegistry moduleRegistry)
moduleRegistry
- the module registry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |