|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.classloader.spi.base.BaseClassLoaderDomain
org.jboss.classloader.spi.ClassLoaderDomain
public class ClassLoaderDomain
ClassLoaderDomain.
| Constructor Summary | |
|---|---|
ClassLoaderDomain(String name)
Create a new ClassLoaderDomain with the ParentPolicy.BEFORE loading rules. |
|
| Method Summary | |
|---|---|
protected URL |
afterGetResource(String name)
Invoked after getResource is attempted to allow a postload attempt, e.g. |
protected void |
afterGetResources(String name,
Set<URL> urls)
Invoked after getResources is attempted to allow a postload attempt, e.g. |
protected URL |
beforeGetResource(String name)
Invoked before getResource is attempted to allow a preload attempt, e.g. |
protected void |
beforeGetResources(String name,
Set<URL> urls)
Invoked before getResources is attempted to allow a preload attempt, e.g. |
protected Loader |
findAfterLoader(String name)
Invoked after classloading is attempted to allow a postload attempt, e.g. |
protected Loader |
findBeforeLoader(String name)
Invoked before classloading is attempted to allow a preload attempt, e.g. |
protected Loader |
findLoaderFromParent(String name)
Try to find a loader from the parent |
String |
getName()
Get the name. |
Loader |
getParent()
Get the parent |
ParentPolicy |
getParentPolicy()
Get the parent policy |
protected URL |
getResourceFromParent(String name)
Try to get a resource from the parent |
protected void |
getResourcesFromParent(String name,
Set<URL> urls)
Try to get resources from the parent |
void |
setParent(Loader parent)
Set the parent. |
void |
setParentPolicy(ParentPolicy parentPolicy)
Set the parentPolicy. |
protected void |
toLongString(StringBuilder builder)
For subclasses to add information for toLongString() |
String |
toString()
|
| Methods inherited from class org.jboss.classloader.spi.base.BaseClassLoaderDomain |
|---|
afterRegisterClassLoader, afterUnregisterClassLoader, beforeRegisterClassLoader, beforeUnregisterClassLoader, clearBlackList, findLoader, flushCaches, getParentClassLoader, getResource, getResources, hasClassLoaders, loadClass, shutdownDomain, toLongString, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.classloader.spi.Loader |
|---|
getResource, getResources, loadClass |
| Constructor Detail |
|---|
public ClassLoaderDomain(String name)
ParentPolicy.BEFORE loading rules.
name - the name of the domain
IllegalArgumentException - for a null name| Method Detail |
|---|
public String getName()
public ParentPolicy getParentPolicy()
public void setParentPolicy(ParentPolicy parentPolicy)
parentPolicy - the parentPolicy.
IllegalArgumentException - for a null parent policypublic Loader getParent()
public void setParent(Loader parent)
parent - the parent.protected void toLongString(StringBuilder builder)
toLongString in class BaseClassLoaderDomainbuilder - the builderpublic String toString()
toString in class Objectprotected Loader findBeforeLoader(String name)
BaseClassLoaderDomain
findBeforeLoader in class BaseClassLoaderDomainname - the class resource name
protected Loader findAfterLoader(String name)
BaseClassLoaderDomain
findAfterLoader in class BaseClassLoaderDomainname - the class resource name
protected Loader findLoaderFromParent(String name)
name - the name
protected URL beforeGetResource(String name)
BaseClassLoaderDomain
beforeGetResource in class BaseClassLoaderDomainname - the resource name
protected URL afterGetResource(String name)
BaseClassLoaderDomain
afterGetResource in class BaseClassLoaderDomainname - the class name
protected URL getResourceFromParent(String name)
name - the name
protected void beforeGetResources(String name,
Set<URL> urls)
throws IOException
BaseClassLoaderDomain
beforeGetResources in class BaseClassLoaderDomainname - the resource nameurls - the urls to add to
IOException - for any error
protected void afterGetResources(String name,
Set<URL> urls)
throws IOException
BaseClassLoaderDomain
afterGetResources in class BaseClassLoaderDomainname - the resource nameurls - the urls to add to
IOException - for any error
protected void getResourcesFromParent(String name,
Set<URL> urls)
throws IOException
name - the nameurls - the urls to add to
IOException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||