|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.util.ClassLoadingHelper
public class ClassLoadingHelper
A helper class for class loading.
| Constructor Summary | |
|---|---|
ClassLoadingHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
loadClass(String className)
Loads a class with the given name. |
|
static URL |
loadResourceFromClasspath(Class<?> clazz,
String resourceName)
Attempts to load a given resource from the classpath. |
|
static Object |
newInstance(String className)
|
|
static Object |
newProxyInstance(List classLoadersToTry,
Class[] minimumSetOfInterfaces,
Class[] interfaces,
InvocationHandler delegate)
Creates a new dynamic proxy instance for the given delegate. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoadingHelper()
| Method Detail |
|---|
public static Object newProxyInstance(List classLoadersToTry,
Class[] minimumSetOfInterfaces,
Class[] interfaces,
InvocationHandler delegate)
throws IllegalArgumentException
classLoadersToTry - The class loaders to try, in the specified list order.minimumSetOfInterfaces - The minimum set of interfaces required, if not all interface
classes were found.interfaces - The interfaces to add to the returned proxy.delegate - The underlying object that will receive the calls on the
proxy.
IllegalArgumentException - If any of the interfaces involved could not be loaded.
public static <T> Class<T> loadClass(String className)
throws ClassNotFoundException
className -
ClassNotFoundException - If not found
public static URL loadResourceFromClasspath(Class<?> clazz,
String resourceName)
clazz - The class to use as reference re classpath.resourceName - The name of the resource
public static Object newInstance(String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||