Class ReflectionAccessorFactory
- java.lang.Object
-
- org.beanio.internal.compiler.accessor.ReflectionAccessorFactory
-
- All Implemented Interfaces:
PropertyAccessorFactory
public class ReflectionAccessorFactory extends java.lang.Object implements PropertyAccessorFactory
PropertyAccessorFactoryimplementations 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 PropertyAccessorgetPropertyAccessor(java.lang.Class<?> parent, java.beans.PropertyDescriptor descriptor, int carg)Creates a newPropertyAccessor.PropertyAccessorgetPropertyAccessor(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:PropertyAccessorFactoryCreates a newPropertyAccessor.- Specified by:
getPropertyAccessorin interfacePropertyAccessorFactory- Parameters:
parent- the parent bean object typedescriptor- thePropertyDescriptorto 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:PropertyAccessorFactoryCreates a newPropertyAccessor.- Specified by:
getPropertyAccessorin interfacePropertyAccessorFactory- Parameters:
parent- the parent bean object typefield- theFieldto accesscarg- the constructor argument index- Returns:
- the new
PropertyAccessor
-
-