public class PojoReflector extends Object implements IAccessSupport, IInvocationSupport
| Constructor and Description |
|---|
PojoReflector(Object target) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getPojo() |
Object |
getValue(String name)
Make a reflective get access to the field
name. |
Object |
invoke(String name,
IArgs args)
Make a reflective call to the method
name. |
Object |
setValue(String name,
Object value)
Make a reflective set access to the field
name. |
public PojoReflector(Object target)
public Object getPojo()
public Object getValue(String name) throws FieldException
IAccessSupportname.getValue in interface IAccessSupportname - The name of the field to get.FieldExceptionpublic Object invoke(String name, IArgs args) throws MethodException
IInvocationSupportname.invoke in interface IInvocationSupportname - The name of the method to call.args - The arguments for the invocation.MethodExceptionpublic Object setValue(String name, Object value) throws FieldException
IAccessSupportname.setValue in interface IAccessSupportname - The name of the field to get.value - The new value for the fieldFieldExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.