BeanIO 2.0.4

org.beanio.internal.compiler.accessor
Class ReflectionAccessorFactory

java.lang.Object
  extended by 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

Constructor Summary
ReflectionAccessorFactory()
           
 
Method Summary
 PropertyAccessor getPropertyAccessor(Class<?> parent, Field field, int carg)
          Creates a new PropertyAccessor.
 PropertyAccessor getPropertyAccessor(Class<?> parent, PropertyDescriptor descriptor, int carg)
          Creates a new PropertyAccessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionAccessorFactory

public ReflectionAccessorFactory()
Method Detail

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 type
descriptor - the PropertyDescriptor to access
carg - 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 type
field - the Field to access
carg - the constructor argument index
Returns:
the new PropertyAccessor

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim