Class IdLookupGeneratorPostProcessor<I>
java.lang.Object
com.foursoft.harness.navext.runtime.postprocessing.IdLookupGeneratorPostProcessor<I>
- Type Parameters:
I- Type of the identifiable elements.
- All Implemented Interfaces:
ModelPostProcessor
ModelPostProcessor to generate a IdLookupProvider during the unmarshalling Process.- Author:
- becker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshalling(Object target, Object parent) Called during the unmarshalling the JAXB unmarshalling process, after the unmarshalling of target has been completed.voidafterUnmarshallingCompleted(Object target) Called after the unmarshalling process of the whole model has been completed.voidClear the state of theModelPostProcessorto allow garbage collection and reuse during multiple unmarshallings.Creates a newIdLookupProviderbased on the current state of the post processor.Class<?>
-
Constructor Details
-
IdLookupGeneratorPostProcessor
-
-
Method Details
-
getClassToHandle
- Specified by:
getClassToHandlein interfaceModelPostProcessor
-
afterUnmarshalling
Description copied from interface:ModelPostProcessorCalled 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:
afterUnmarshallingin interfaceModelPostProcessor- 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
Description copied from interface:ModelPostProcessorCalled after the unmarshalling process of the whole model has been completed.- Specified by:
afterUnmarshallingCompletedin interfaceModelPostProcessor- Parameters:
target- the object co call
-
clearState
public void clearState()Description copied from interface:ModelPostProcessorClear the state of theModelPostProcessorto allow garbage collection and reuse during multiple unmarshallings.- Specified by:
clearStatein interfaceModelPostProcessor
-
createIdLookkup
Creates a newIdLookupProviderbased on the current state of the post processor.- Returns:
- the id lookup provider
-