|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.reflect.PojoReflector
public class PojoReflector
A POJO wrapper for the ease of reflective access.
| Constructor Summary | |
|---|---|
PojoReflector(Object target)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PojoReflector(Object target)
| Method Detail |
|---|
public Object getPojo()
public Object getValue(String name)
throws FieldException
IAccessSupportname.
getValue in interface IAccessSupportname - The name of the field to get.
FieldException
public 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.
MethodException
public 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 field
FieldException
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||