intarsys runtime library

de.intarsys.tools.reflect
Interface IFieldHandler

All Known Subinterfaces:
IField
All Known Implementing Classes:
FunctorField, FunctorFieldHandler, PropertyRenderer

public interface IFieldHandler

An object able to access a field within a delegate


Method Summary
 Object getValue(Object receiver)
          Make a reflective read access to the field represented by this within the receiver.
 Object setValue(Object receiver, Object value)
          Make a reflective write access to the field represented by this within receiver.
 

Method Detail

getValue

Object getValue(Object receiver)
                throws FieldAccessException
Make a reflective read access to the field represented by this within the receiver.

Parameters:
receiver - The object hosting the field.
Returns:
The field value
Throws:
FieldException
FieldAccessException

setValue

Object setValue(Object receiver,
                Object value)
                throws FieldAccessException
Make a reflective write access to the field represented by this within receiver.

Parameters:
receiver - The object hosting the field.
value - The new value for the field
Returns:
The previous field value. This is an optional feature.
Throws:
FieldException
FieldAccessException

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.