|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyDelegate<T>
Interface for providing handling on a property by property basis. Allows
overriding of the default behavior and provides access to the PropertyValues
component within the proxy to read and manipulate the bean's internal state.
Since the get and set calls provide direct access to the internal storage of
the delegating bean, implementers of this interface should be stateless. This
is also required to work safely with the copy methods on ProxyFactory
.
Method Summary | |
---|---|
T |
get(PropertyValues values,
java.lang.String propertyName)
Invoked by the PropertyHandler when a read is performed against a specified property. |
java.lang.Class<T> |
propertyType()
For constraint checking so that the parameterized type can be ensured to work with the property to which this may be attached. |
void |
set(PropertyValues values,
java.lang.String propertyName,
T value)
Invoked by the PropertyHandler when a write is performed against a specified property. |
Method Detail |
---|
java.lang.Class<T> propertyType()
T get(PropertyValues values, java.lang.String propertyName)
values
- Gives the delegate access to the internal state of the bean.propertyName
- Discriminates which property is being accessed, so a single
delegate can intelligently be re-used.
void set(PropertyValues values, java.lang.String propertyName, T value)
values
- Gives the delegate access to the internal state of the bean.propertyName
- Discriminates which property is being accessed, so a single
delegate can intelligently be re-used.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |