|
||||||||||
| 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 java.lang.Class |
getApplicationClass(java.lang.String className)
Return the Class object for the specified fully
qualified class name, from this web application's class loader. |
static java.lang.Object |
getApplicationInstance(java.lang.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 java.lang.Class getApplicationClass(java.lang.String className)
throws java.lang.ClassNotFoundException
Return the Class object for the specified fully
qualified class name, from this web application's class loader.
className - Fully qualified class name
java.lang.ClassNotFoundException - if the specified class cannot be loaded
public static java.lang.Object getApplicationInstance(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.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
java.lang.ClassNotFoundException - if the specified class cannot be loaded
java.lang.IllegalAccessException - if this class is not concrete
java.lang.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 | |||||||||