|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassResolver
A class resolver for loading classes in a loosly coupled manner to cater for different platforms such as standalone, web container, j2ee container and OSGi platforms.
Method Summary | ||
---|---|---|
InputStream |
loadResourceAsStream(String uri)
Loads the given resource as a stream |
|
Class |
resolveClass(String name)
Resolves the given class by its name |
|
|
resolveClass(String name,
Class<T> type)
Resolves the given class by its name |
|
|
resolveClass(String name,
Class<T> type,
ClassLoader loader)
Resolves the given class by its name |
|
Class |
resolveClass(String name,
ClassLoader loader)
Resolves the given class by its name |
|
Class |
resolveMandatoryClass(String name)
Resolves the given class by its name |
|
|
resolveMandatoryClass(String name,
Class<T> type)
Resolves the given class by its name |
|
|
resolveMandatoryClass(String name,
Class<T> type,
ClassLoader loader)
Resolves the given class by its name |
|
Class |
resolveMandatoryClass(String name,
ClassLoader loader)
Resolves the given class by its name |
Method Detail |
---|
Class resolveClass(String name)
name
- full qualified name of class
<T> Class<T> resolveClass(String name, Class<T> type)
name
- full qualified name of classtype
- the expected type of the class
Class resolveClass(String name, ClassLoader loader)
name
- full qualified name of classloader
- use the provided class loader
<T> Class<T> resolveClass(String name, Class<T> type, ClassLoader loader)
name
- full qualified name of classtype
- the expected type of the classloader
- use the provided class loader
Class resolveMandatoryClass(String name) throws ClassNotFoundException
name
- full qualified name of class
ClassNotFoundException
- is thrown if class not found<T> Class<T> resolveMandatoryClass(String name, Class<T> type) throws ClassNotFoundException
name
- full qualified name of classtype
- the expected type of the class
ClassNotFoundException
- is thrown if class not foundClass resolveMandatoryClass(String name, ClassLoader loader) throws ClassNotFoundException
name
- full qualified name of classloader
- use the provided class loader
ClassNotFoundException
- is thrown if class not found<T> Class<T> resolveMandatoryClass(String name, Class<T> type, ClassLoader loader) throws ClassNotFoundException
name
- full qualified name of classtype
- the expected type of the classloader
- use the provided class loader
ClassNotFoundException
- is thrown if class not foundInputStream loadResourceAsStream(String uri)
uri
- the uri of the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |