|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.chain.commands.util.ClassUtils
public final class ClassUtils
Utility methods to load application classes and create instances.
| Constructor Summary | |
|---|---|
ClassUtils()
|
|
| Method Summary | |
|---|---|
static Class |
getApplicationClass(String className)
Return the Class object for the specified fully
qualified class name, from this web application's class loader. |
static Object |
getApplicationInstance(String className)
Return a new instance of the specified fully qualified class name, after loading the class (if necessary) from this web application's class loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassUtils()
| Method Detail |
|---|
public static Class getApplicationClass(String className)
throws ClassNotFoundException
Return the Class object for the specified fully
qualified class name, from this web application's class loader.
className - Fully qualified class name
ClassNotFoundException - if the specified class cannot be loaded
public static Object getApplicationInstance(String className)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
Return a new instance of the specified fully qualified class name, after loading the class (if necessary) from this web application's class loader.
className - Fully qualified class name
ClassNotFoundException - if the specified class cannot be loaded
IllegalAccessException - if this class is not concrete
InstantiationException - if this class has no zero-arguments
constructor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||