Package de.intarsys.tools.reflect
Interface IAccessHandler
-
public interface IAccessHandlerAn object supporting handling reflective access to fields of a delegate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetValue(java.lang.Object receiver, java.lang.String name)Make a reflective get access to the fieldnamewithinreceiverjava.lang.ObjectsetValue(java.lang.Object receiver, java.lang.String name, java.lang.Object value)Make a reflective set access to the fieldnamewithinreceiver
-
-
-
Method Detail
-
getValue
java.lang.Object getValue(java.lang.Object receiver, java.lang.String name) throws FieldExceptionMake a reflective get access to the fieldnamewithinreceiver- Parameters:
receiver- The object hosting the field.name- The name of the field to get.- Returns:
- The field value
- Throws:
FieldException
-
setValue
java.lang.Object setValue(java.lang.Object receiver, java.lang.String name, java.lang.Object value) throws FieldExceptionMake a reflective set access to the fieldnamewithinreceiver- Parameters:
receiver- The object hosting the field.name- The name of the field to get.value- The new value for the field- Returns:
- The previous field value. This is an optional feature.
- Throws:
FieldException
-
-