Class ReflectiveAssociationPostProcessor

java.lang.Object
com.foursoft.harness.navext.runtime.postprocessing.ReflectiveAssociationPostProcessor
All Implemented Interfaces:
ModelPostProcessor

public class ReflectiveAssociationPostProcessor extends Object implements ModelPostProcessor
  • Constructor Details

    • ReflectiveAssociationPostProcessor

      public ReflectiveAssociationPostProcessor(Class<?> classToHandle)
  • Method Details

    • getClassToHandle

      public Class<?> getClassToHandle()
      Specified by:
      getClassToHandle in interface ModelPostProcessor
    • afterUnmarshalling

      public void afterUnmarshalling(Object target, Object parent)
      Description copied from interface: ModelPostProcessor
      Called during the unmarshalling the JAXB unmarshalling process, after the unmarshalling of target has been completed. IDREF relations are not yet initialized at this point of the unmarshalling process.
      Specified by:
      afterUnmarshalling in interface ModelPostProcessor
      Parameters:
      target - non-null instance of JAXB mapped class prior to unmarshalling into it.
      parent - instance of JAXB mapped class that will reference target. null when target is root element.
      See Also:
      • Unmarshaller.Listener.afterUnmarshal(Object, Object)
    • afterUnmarshallingCompleted

      public void afterUnmarshallingCompleted(Object target)
      Description copied from interface: ModelPostProcessor
      Called after the unmarshalling process of the whole model has been completed.
      Specified by:
      afterUnmarshallingCompleted in interface ModelPostProcessor
      Parameters:
      target - the object co call
    • clearState

      public void clearState()
      Description copied from interface: ModelPostProcessor
      Clear the state of the ModelPostProcessor to allow garbage collection and reuse during multiple unmarshallings.
      Specified by:
      clearState in interface ModelPostProcessor