Interface AccessorFactory

  • All Known Subinterfaces:
    InternalAccessorFactory
    All Known Implementing Classes:
    AccessorFactoryImpl

    public interface AccessorFactory
    A means to allow the user to provide customized Accessor to be used by JAXB.
    • Method Detail

      • createFieldAccessor

        org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor createFieldAccessor​(Class bean,
                                                                                   Field f,
                                                                                   boolean readOnly)
                                                                            throws jakarta.xml.bind.JAXBException
        Access a field of the class.
        Parameters:
        bean - the class to be processed.
        f - 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:
        jakarta.xml.bind.JAXBException - reports failures of the method.
      • createPropertyAccessor

        org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor createPropertyAccessor​(Class bean,
                                                                                      Method getter,
                                                                                      Method setter)
                                                                               throws jakarta.xml.bind.JAXBException
        Access a property of the class.
        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:
        jakarta.xml.bind.JAXBException - reports failures of the method.