com.sun.xml.bind
Class AccessorFactoryImpl

java.lang.Object
  extended by com.sun.xml.bind.AccessorFactoryImpl
All Implemented Interfaces:
AccessorFactory, InternalAccessorFactory

public class AccessorFactoryImpl
extends java.lang.Object
implements InternalAccessorFactory


Method Summary
 Accessor createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field field, boolean readOnly)
          Access a field of the class.
 Accessor createFieldAccessor(java.lang.Class bean, java.lang.reflect.Field field, boolean readOnly, boolean supressWarning)
          Access a field of the class.
 Accessor createPropertyAccessor(java.lang.Class bean, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
          Access a property of the class.
static AccessorFactoryImpl getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AccessorFactoryImpl getInstance()

createFieldAccessor

public Accessor createFieldAccessor(java.lang.Class bean,
                                    java.lang.reflect.Field field,
                                    boolean readOnly)
Access a field of the class.

Specified by:
createFieldAccessor in interface AccessorFactory
Parameters:
bean - the class to be processed.
field - the field within the class to be accessed.
readOnly - the isStatic value of the field's modifier.
Returns:
Accessor the accessor for this field
Throws:
javax.xml.bind.JAXBException - reports failures of the method.

createFieldAccessor

public Accessor createFieldAccessor(java.lang.Class bean,
                                    java.lang.reflect.Field field,
                                    boolean readOnly,
                                    boolean supressWarning)
Access a field of the class.

Specified by:
createFieldAccessor in interface InternalAccessorFactory
Parameters:
bean - the class to be processed.
field - the field within the class to be accessed.
readOnly - the isStatic value of the field's modifier.
supressWarning - supress security warning about accessing fields through reflection
Returns:
Accessor the accessor for this field
Throws:
javax.xml.bind.JAXBException - reports failures of the method.

createPropertyAccessor

public Accessor createPropertyAccessor(java.lang.Class bean,
                                       java.lang.reflect.Method getter,
                                       java.lang.reflect.Method setter)
Access a property of the class.

Specified by:
createPropertyAccessor in interface AccessorFactory
Parameters:
bean - the class to be processed
getter - the getter method to be accessed. The value can be null.
setter - the setter method to be accessed. The value can be null.
Returns:
Accessor the accessor for these methods
Throws:
javax.xml.bind.JAXBException - reports failures of the method.