|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classloader.spi.base.BaseDelegateLoader
public class BaseDelegateLoader
Base DelegateLoader.
Constructor Summary | |
---|---|
BaseDelegateLoader(BaseClassLoaderPolicy delegate)
Create a new BaseDelegateLoader. |
|
BaseDelegateLoader(ClassLoaderPolicyFactory factory)
Create a new BaseDelegateLoader. |
Method Summary | |
---|---|
Package |
getPackage(String name)
Get a package |
void |
getPackages(Set<Package> packages)
Get all the packages visible from this loader |
URL |
getResource(String name)
Get a resource |
void |
getResources(String name,
Set<URL> urls)
Get resources |
protected void |
initialise(ClassLoaderPolicy policy)
Callback to initialise policy |
Class<?> |
loadClass(String className)
Load a class |
String |
toLongString()
A long version of toString() |
protected void |
toLongString(StringBuilder builder)
For subclasses to add information for toLongString() |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseDelegateLoader(BaseClassLoaderPolicy delegate)
delegate
- the delegate
IllegalArgumentException
- for a null delegatepublic BaseDelegateLoader(ClassLoaderPolicyFactory factory)
factory
- the factory
IllegalArgumentException
- for a null factoryMethod Detail |
---|
protected void initialise(ClassLoaderPolicy policy)
policy
- the policypublic Class<?> loadClass(String className)
Loader
loadClass
in interface Loader
className
- the class name
public URL getResource(String name)
Loader
getResource
in interface Loader
name
- the resource name
public void getResources(String name, Set<URL> urls) throws IOException
Loader
getResources
in interface Loader
name
- the resource nameurls
- the list of urls to add to
IOException
- for any errorpublic Package getPackage(String name)
Loader
getPackage
in interface Loader
name
- the package name
public void getPackages(Set<Package> packages)
Loader
getPackages
in interface Loader
packages
- the packagespublic String toLongString()
protected void toLongString(StringBuilder builder)
builder
- the builderpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |