Interface PropertyAccess
public interface PropertyAccess
Defines how a given persistent attribute is accessed by exposing
a
Getter and a Setter for the attribute.
Instances are obtained from a PropertyAccessStrategy.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionObtain the delegate for getting values of the persistent attribute.Access to thePropertyAccessStrategythat created this instance.The monomorphic value accessor for this property.Obtain the delegate for setting values of the persistent attribute.
-
Method Details
-
getPropertyAccessStrategy
PropertyAccessStrategy getPropertyAccessStrategy()Access to thePropertyAccessStrategythat created this instance.- Returns:
- The
PropertyAccessStrategy
-
getGetter
Getter getGetter()Obtain the delegate for getting values of the persistent attribute.- Returns:
- The property getter
-
getSetter
-
getPropertyValueAccessor
PropertyValueAccessor getPropertyValueAccessor()The monomorphic value accessor for this property. Replaces the value-access role ofGetter.get(Object)/Setter.set(Object, Object).The default implementation wraps the getter/setter via method references. Concrete implementations may return a pre-built optimized accessor instead.
-