name
attribute denotes
the name of the method to invoke.
If the class
attribute is specified
this element invokes static method of specified class.
The inner elements specifies the arguments of the method.
For example:<method name="valueOf" class="java.lang.Long"> <string>10</string> </method>is equivalent to
Long.valueOf("10")
in Java code.
The following attributes are supported:
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | addAttribute(String
the attribute name name, String the attribute value value)Overrides com. |
protected ValueObject | Returns: the value of this elementthe base class type, Object[] the array of arguments args)Overrides com. |
name | back to summary |
---|---|
private String name |
MethodElementHandler | back to summary |
---|---|
pack-priv MethodElementHandler() |
addAttribute | back to summary |
---|---|
public void addAttribute(String name, String value) Overrides com. Parses attributes of the element. The following attributes are supported:
|
getValueObject | back to summary |
---|---|
protected ValueObject getValueObject(Class<?> type, Object[] args) throws Exception Overrides com. Returns the result of method execution.
|