public class PojoPropertyAccessorTwoArgMethod extends AbstractPojoPropertyAccessorMethod implements PojoPropertyAccessorTwoArg
PojoPropertyAccessorTwoArg
interface for accessing a
Method
.Modifier and Type | Field and Description |
---|---|
private PojoPropertyAccessorTwoArgMode |
mode |
Constructor and Description |
---|
PojoPropertyAccessorTwoArgMethod(String propertyName,
Type propertyType,
PojoPropertyAccessorTwoArgMode mode,
PojoDescriptor<?> descriptor,
PojoDescriptorDependencies dependencies,
Method method)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PojoPropertyAccessorTwoArgMode |
getMode()
This method gets the mode of this accessor.
|
Object |
invoke(Object pojoInstance,
Object argument1,
Object argument2)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getMethod, getModifiers, getReturnClass, getReturnType
getName, getPropertyType
getPropertyClass, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyType, getReturnClass, getReturnType
getName
private final PojoPropertyAccessorTwoArgMode mode
getMode()
public PojoPropertyAccessorTwoArgMethod(String propertyName, Type propertyType, PojoPropertyAccessorTwoArgMode mode, PojoDescriptor<?> descriptor, PojoDescriptorDependencies dependencies, Method method)
propertyName
- is the name
of the property.propertyType
- is the generic type
of the property.mode
- is the mode
of access.descriptor
- is the descriptor this accessor is intended for.dependencies
- are the PojoDescriptorDependencies
to use.method
- is the method
to access.public Object invoke(Object pojoInstance, Object argument1, Object argument2)
pojoInstance
with the given arguments. invoke
in interface PojoPropertyAccessorTwoArg
pojoInstance
- is the instance of the POJO where to access the property. Has to be an instance of
the type
from where this
accessor was created for.argument1
- is the first argument.argument2
- is the second argument.null
if void (e.g. regular setter method).public PojoPropertyAccessorTwoArgMode getMode()
getMode
in interface PojoPropertyAccessor
getMode
in interface PojoPropertyAccessorTwoArg
Copyright © 2001–2014 mmm-Team. All rights reserved.