public interface DomainClassLoader
Modifier and Type | Method and Description |
---|---|
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
|
ClassLoadingDomain getDomain()
void setDomain(ClassLoadingDomain domain)
domain
- the domainURL[] getClasspath()
Class<?> loadClass(String name) throws ClassNotFoundException
name
- the nameClassNotFoundException
Class<?> loadClassLocally(String name, boolean resolve) throws ClassNotFoundException
name
- the class nameresolve
- whether to resolve the classClassNotFoundException
- when there is not classURL loadResourceLocally(String name)
name
- the resource nameEnumeration<URL> findResourcesLocally(String name) throws IOException
name
- the name of the resourceIOException
- for any errorString[] getPackageNames()
Package[] getPackages()
Copyright © 2015 JBoss by Red Hat. All rights reserved.