|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(Method method)
Convenience constructor sets method property |
Method Summary | |
---|---|
protected void |
executeUpdate(Context context,
Object bean,
Object newValue)
Updates the bean by method invocation. |
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(Method method)
Sets the constant value of this expression |
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(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 Method getMethod()
public void setMethod(Method method)
method
- the Method to be invoked by the updatepublic String toString()
toString
in class Object
protected void executeUpdate(Context context, Object bean, Object newValue) throws Exception
executeUpdate
in class TypedUpdater
newValue
- value after type conversion
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |