public class

MethodUpdater

extends TypedUpdater
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.TypedUpdater
     ↳ org.apache.commons.betwixt.expression.MethodUpdater

Class Overview

MethodUpdater updates the current bean context by calling a WriteMethod with the String value from the XML attribute or element.

Summary

Public Constructors
MethodUpdater()
Base constructor
MethodUpdater(Method method)
Convenience constructor sets method property
Public Methods
Method getMethod()
Gets the method which will be invoked by the update
static void setLog(Log aLog)
Programmatically set log
void setMethod(Method method)
Sets the constant value of this expression
String toString()
Returns something useful for logging.
Protected Methods
void executeUpdate(Context context, Object bean, Object newValue)
Updates the bean by method invocation.
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.expression.TypedUpdater
From class java.lang.Object
From interface org.apache.commons.betwixt.expression.Updater

Public Constructors

public MethodUpdater ()

Base constructor

public MethodUpdater (Method method)

Convenience constructor sets method property

Parameters
method the Method to be invoked on the context's bean in the update

Public Methods

public Method getMethod ()

Gets the method which will be invoked by the update

Returns
  • the Method to be invoked by the update

public static void setLog (Log aLog)

Programmatically set log

Parameters
aLog the implementation to which this class should log

public void setMethod (Method method)

Sets the constant value of this expression

Parameters
method the Method to be invoked by the update

public String toString ()

Returns something useful for logging.

Returns
  • something useful for logging

Protected Methods

protected void executeUpdate (Context context, Object bean, Object newValue)

Updates the bean by method invocation.

Parameters
newValue value after type conversion
Throws
Exception