|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.coerce.CoercionHandler (src)
org.jboss.util.coerce.BoundCoercionHandler (src)
org.jboss.util.coerce.ClassHandler
A java.lang.Class coercion handler.
| Constructor Summary | |
ClassHandler()
|
|
| Method Summary | |
java.lang.Object |
coerce(java.lang.Object value,
java.lang.Class type)
Coerces the given value into the given type (which should be Class). |
java.lang.Object |
coerce(java.lang.String value)
Coerces the given String into a Class by doing a Class.forName(). |
java.lang.Class |
getType()
Get the target class type for this CoercionHandler. |
| Methods inherited from class org.jboss.util.coerce.CoercionHandler (src) |
create, install, install, isInstalled, lookup, uninstall |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassHandler()
| Method Detail |
public java.lang.Class getType()
getType in class BoundCoercionHandler (src)
public java.lang.Object coerce(java.lang.Object value,
java.lang.Class type)
throws CoercionException (src)
This currently only support coercion from a String.
coerce in class CoercionHandler (src) value - Value to coerce.type - java.lang.Class.
CoercionException (src) - Failed to coerce.public java.lang.Object coerce(java.lang.String value)
Class.forName().
value - String value to convert to a Class.
NotCoercibleException (src) - Class not found.
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||