Class MethodAccessedProperty<T>
java.lang.Object
org.axonframework.common.property.MethodAccessedProperty<T>
- Type Parameters:
T- The type of object defining this property
- All Implemented Interfaces:
Property<T>
Property implementation that invokes a method to obtain a value of a property for a given instance.
- Since:
- 2.0
- Author:
- Maxim Fedorov, Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionMethodAccessedProperty(Method accessorMethod, String propertyName) Initialize a reader that uses givenaccessorMethodto access a property with givenpropertyName. -
Method Summary
-
Constructor Details
-
MethodAccessedProperty
Initialize a reader that uses givenaccessorMethodto access a property with givenpropertyName.- Parameters:
accessorMethod- The method providing the property valuepropertyName- The name of the property
-
-
Method Details
-
getValue
Description copied from interface:PropertyReturns the value of the property on giventarget.
-