|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.util.ClassUtil
public class ClassUtil
Utility methods to aid in class/resource loading.
Constructor Summary | |
---|---|
ClassUtil()
|
Method Summary | |
---|---|
static java.lang.Class |
forName(java.lang.String className,
java.lang.Class caller)
Load the specified class. |
static java.lang.String |
getPath(java.lang.Package packageObj)
Get a package name and convert it to a path value, so it can be used in calls to methods like getResourceAsStream(java.lang.String, java.lang.Class) . |
static java.io.InputStream |
getResourceAsStream(java.lang.String resourceName,
java.lang.Class caller)
Get the specified resource as a stream. |
static java.util.List<java.lang.String> |
getResourceList(java.lang.String regex,
java.lang.Class caller)
|
static java.lang.Class |
resolveProxy(java.lang.String[] interfaces,
java.lang.Class caller)
Resolve a proxy for the specified interfaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassUtil()
Method Detail |
---|
public static java.lang.Class forName(java.lang.String className, java.lang.Class caller) throws java.lang.ClassNotFoundException
className
- The name of the class to load.caller
- The class of the caller.
java.lang.ClassNotFoundException
- If the class cannot be found.public static java.lang.Class resolveProxy(java.lang.String[] interfaces, java.lang.Class caller) throws java.lang.ClassNotFoundException
interfaces
- The interfaces associated with the proxy.caller
- The class of the caller.
java.lang.ClassNotFoundException
- If the class cannot be found.public static java.io.InputStream getResourceAsStream(java.lang.String resourceName, java.lang.Class caller)
resourceName
- The name of the class to load.caller
- The class of the caller.
public static java.lang.String getPath(java.lang.Package packageObj)
getResourceAsStream(java.lang.String, java.lang.Class)
.
Adds a '/' prefix and converts all '." characters to '/'. Doesn't add a
trailing slash.
packageObj
- The package.
public static java.util.List<java.lang.String> getResourceList(java.lang.String regex, java.lang.Class caller)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |