Interface PostProcessor
public interface PostProcessor
A callback executed after all field serialization has been performed.
- Since:
- 4.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory to produce object post-processors. -
Method Summary
Modifier and TypeMethodDescriptionstatic PostProcessor.FactorymethodsAnnotated(Class<? extends Annotation> annotation) Discover methods annotated with the designated post-processor annotation in object-mapped types and their supertypes.static PostProcessor.FactoryDiscover methods annotated with thePostProcessannotation.voidpostProcess(Object instance) Perform post-processing on the fully deserialized instance.
-
Method Details
-
postProcess
Perform post-processing on the fully deserialized instance.- Parameters:
instance- the instance to post-process- Throws:
SerializationException- if the underlying operation detects an error- Since:
- 4.2.0
-
methodsAnnotated
Discover methods annotated with the designated post-processor annotation in object-mapped types and their supertypes.Annotated methods must be non-static, take no parameters, and can have no declared thrown exceptions except for
SerializationException.- Parameters:
annotation- the annotation that will mark post-processor methods- Returns:
- a factory for annotated methods
- Since:
- 4.2.0
-
methodsAnnotatedPostProcess
Discover methods annotated with thePostProcessannotation.All restrictions from
methodsAnnotated(Class)apply to these annotated methods.- Returns:
- a new factory for discovering annotated methods
- Since:
- 4.2.0
- See Also:
-