org.beanio.internal.compiler.accessor
Class ReflectionAccessorFactory
java.lang.Object
org.beanio.internal.compiler.accessor.ReflectionAccessorFactory
- All Implemented Interfaces:
- PropertyAccessorFactory
public class ReflectionAccessorFactory
- extends Object
- implements PropertyAccessorFactory
PropertyAccessorFactory
implementations based on Java reflection.
- Since:
- 2.0.1
- Author:
- Kevin Seim
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionAccessorFactory
public ReflectionAccessorFactory()
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(Class<?> parent,
PropertyDescriptor descriptor,
int carg)
- Description copied from interface:
PropertyAccessorFactory
- Creates a new
PropertyAccessor
.
- Specified by:
getPropertyAccessor
in interface PropertyAccessorFactory
- Parameters:
parent
- the parent bean object typedescriptor
- the PropertyDescriptor
to accesscarg
- the constructor argument index
- Returns:
- the new
PropertyAccessor
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(Class<?> parent,
Field field,
int carg)
- Description copied from interface:
PropertyAccessorFactory
- Creates a new
PropertyAccessor
.
- Specified by:
getPropertyAccessor
in interface PropertyAccessorFactory
- Parameters:
parent
- the parent bean object typefield
- the Field
to accesscarg
- the constructor argument index
- Returns:
- the new
PropertyAccessor
Copyright © 2010-2013 Kevin Seim