|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.util.ClassLoadingHelper
public class ClassLoadingHelper
A helper class for class loading.
Constructor Summary | |
---|---|
ClassLoadingHelper()
|
Method Summary | |
---|---|
static Class |
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 |
newProxyInstance(List classLoadersToTry,
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[] interfaces, InvocationHandler delegate) throws IllegalArgumentException
classLoadersToTry
- The class loaders to try, in the specified list order.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 Class loadClass(String className) throws ClassNotFoundException
className
-
ClassNotFoundException
- If not foundpublic static URL loadResourceFromClasspath(Class clazz, String resourceName)
clazz
- The class to use as reference re classpath.resourceName
- The name of the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |