Class ReflectionAccessorFactory
- java.lang.Object
-
- org.beanio.internal.compiler.accessor.ReflectionAccessorFactory
-
- All Implemented Interfaces:
PropertyAccessorFactory
public class ReflectionAccessorFactory extends java.lang.Object implements PropertyAccessorFactory
PropertyAccessorFactory
implementations based on Java reflection.- Since:
- 2.0.1
-
-
Constructor Summary
Constructors Constructor Description ReflectionAccessorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyAccessor
getPropertyAccessor(java.lang.Class<?> parent, java.beans.PropertyDescriptor descriptor, int carg)
Creates a newPropertyAccessor
.PropertyAccessor
getPropertyAccessor(java.lang.Class<?> parent, java.lang.reflect.Field field, int carg)
Creates a newPropertyAccessor
.
-
-
-
Method Detail
-
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(java.lang.Class<?> parent, java.beans.PropertyDescriptor descriptor, int carg)
Description copied from interface:PropertyAccessorFactory
Creates a newPropertyAccessor
.- Specified by:
getPropertyAccessor
in interfacePropertyAccessorFactory
- Parameters:
parent
- the parent bean object typedescriptor
- thePropertyDescriptor
to accesscarg
- the constructor argument index- Returns:
- the new
PropertyAccessor
-
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(java.lang.Class<?> parent, java.lang.reflect.Field field, int carg)
Description copied from interface:PropertyAccessorFactory
Creates a newPropertyAccessor
.- Specified by:
getPropertyAccessor
in interfacePropertyAccessorFactory
- Parameters:
parent
- the parent bean object typefield
- theField
to accesscarg
- the constructor argument index- Returns:
- the new
PropertyAccessor
-
-