|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DomainClassLoader
A classloader that can be put in a domain
| Method Summary | |
|---|---|
Enumeration<URL> |
findResourcesLocally(String name)
Find resources locally |
URL[] |
getClasspath()
Get the classpath |
ClassLoadingDomain |
getDomain()
The domain of the classloader |
Package |
getPackage(String name)
Get a package defined by the classloader |
String[] |
getPackageNames()
Get the possible package names associated with the class loader. |
Package[] |
getPackages()
Get the packages defined by the classloader |
Class<?> |
loadClass(String name)
Load a class |
Class<?> |
loadClassLocally(String name,
boolean resolve)
Load a class |
URL |
loadResourceLocally(String name)
Get a resource |
void |
setDomain(ClassLoadingDomain domain)
Set the domain of the classloader |
| Method Detail |
|---|
ClassLoadingDomain getDomain()
void setDomain(ClassLoadingDomain domain)
domain - the domainURL[] getClasspath()
Class<?> loadClass(String name)
throws ClassNotFoundException
name - the name
ClassNotFoundException
Class<?> loadClassLocally(String name,
boolean resolve)
throws ClassNotFoundException
name - the class nameresolve - whether to resolve the class
ClassNotFoundException - when there is not classURL loadResourceLocally(String name)
name - the resource name
Enumeration<URL> findResourcesLocally(String name)
throws IOException
name - the name of the resource
IOException - for any errorString[] getPackageNames()
Package[] getPackages()
Package getPackage(String name)
name - the name of the package
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||