public class MethodUpdater extends TypedUpdater
MethodUpdater
updates the current bean context
by calling a WriteMethod with the String value from the XML attribute
or element.
Constructor and Description |
---|
MethodUpdater()
Base constructor
|
MethodUpdater(Method method)
Convenience constructor sets method property
|
Modifier and Type | Method and Description |
---|---|
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.
|
getValueType, handleException, setValueType, update
public MethodUpdater()
public MethodUpdater(Method method)
method
- the Method to be invoked on the context's bean in the updatepublic 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()
protected void executeUpdate(Context context, Object bean, Object newValue) throws Exception
executeUpdate
in class TypedUpdater
newValue
- value after type conversionException
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.