BeanIO 2.0.4

org.beanio.internal.compiler
Interface PropertyAccessorFactory

All Known Implementing Classes:
AsmAccessorFactory, ReflectionAccessorFactory

public interface PropertyAccessorFactory

Factory interface for creating PropertyAccessor implementations.

Since:
2.0.1
Author:
Kevin Seim

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.
 

Method Detail

getPropertyAccessor

PropertyAccessor getPropertyAccessor(Class<?> parent,
                                     PropertyDescriptor descriptor,
                                     int carg)
Creates a new PropertyAccessor.

Parameters:
parent - the parent bean object type
descriptor - the PropertyDescriptor to access
carg - the constructor argument index
Returns:
the new PropertyAccessor

getPropertyAccessor

PropertyAccessor getPropertyAccessor(Class<?> parent,
                                     Field field,
                                     int carg)
Creates a new PropertyAccessor.

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