|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.expression.TypedUpdater org.apache.commons.betwixt.expression.MethodUpdater
public class MethodUpdater
MethodUpdater
updates the current bean context
by calling a WriteMethod with the String value from the XML attribute
or element.
Constructor Summary | |
---|---|
MethodUpdater()
Base constructor |
|
MethodUpdater(java.lang.reflect.Method method)
Convenience constructor sets method property |
Method Summary | |
---|---|
protected void |
executeUpdate(Context context,
java.lang.Object bean,
java.lang.Object newValue)
Updates the bean by method invocation. |
java.lang.reflect.Method |
getMethod()
Gets the method which will be invoked by the update |
static void |
setLog(org.apache.commons.logging.Log aLog)
Programmatically set log |
void |
setMethod(java.lang.reflect.Method method)
Sets the constant value of this expression |
java.lang.String |
toString()
Returns something useful for logging. |
Methods inherited from class org.apache.commons.betwixt.expression.TypedUpdater |
---|
getValueType, handleException, setValueType, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodUpdater()
public MethodUpdater(java.lang.reflect.Method method)
method
- the Method to be invoked on the context's bean in the updateMethod Detail |
---|
public static void setLog(org.apache.commons.logging.Log aLog)
aLog
- the implementation to which this class should logpublic java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method method)
method
- the Method to be invoked by the updatepublic java.lang.String toString()
toString
in class java.lang.Object
protected void executeUpdate(Context context, java.lang.Object bean, java.lang.Object newValue) throws java.lang.Exception
executeUpdate
in class TypedUpdater
newValue
- value after type conversion
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |