Methods Summary |
---|
public static java.net.URL | getResource(java.lang.String name)
final Class caller = ClassLoaderResolver.getCallerClass (1);
final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller);
if (loader != null)
return loader.getResource (name);
else
return ClassLoader.getSystemResource (name);
|
public static java.net.URL | getResource(java.lang.String name, java.lang.ClassLoader loader)
if (loader != null)
return loader.getResource (name);
else
return ClassLoader.getSystemResource (name);
|
public static java.io.InputStream | getResourceAsStream(java.lang.String name)
final Class caller = ClassLoaderResolver.getCallerClass (1);
final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller);
if (loader != null)
return loader.getResourceAsStream (name);
else
return ClassLoader.getSystemResourceAsStream (name);
|
public static java.io.InputStream | getResourceAsStream(java.lang.String name, java.lang.ClassLoader loader)
if (loader != null)
return loader.getResourceAsStream (name);
else
return ClassLoader.getSystemResourceAsStream (name);
|
public static java.util.Enumeration | getResources(java.lang.String name)
final Class caller = ClassLoaderResolver.getCallerClass (1);
final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller);
if (loader != null)
return loader.getResources (name);
else
return ClassLoader.getSystemResources (name);
|
public static java.util.Enumeration | getResources(java.lang.String name, java.lang.ClassLoader loader)
if (loader != null)
return loader.getResources (name);
else
return ClassLoader.getSystemResources (name);
|
public static java.lang.Class | loadClass(java.lang.String name)
final Class caller = ClassLoaderResolver.getCallerClass (1);
final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller);
return Class.forName (name, false, loader);
|
public static java.lang.Class | loadClass(java.lang.String name, java.lang.ClassLoader loader)
return Class.forName (name, false, loader != null ? loader : ClassLoader.getSystemClassLoader ());
|