intarsys runtime library

de.intarsys.tools.reflect
Interface IAccessHandler


public interface IAccessHandler

An object supporting handling reflective access to fields of a delegate.


Method Summary
 Object getValue(Object receiver, String name)
          Make a reflective get access to the field name within receiver
 Object setValue(Object receiver, String name, Object value)
          Make a reflective set access to the field name within receiver
 

Method Detail

getValue

Object getValue(Object receiver,
                String name)
                throws FieldException
Make a reflective get access to the field name within receiver

Parameters:
receiver - The object hosting the field.
name - The name of the field to get.
Returns:
The field value
Throws:
FieldException

setValue

Object setValue(Object receiver,
                String name,
                Object value)
                throws FieldException
Make a reflective set access to the field name within receiver

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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.