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 interface
A factory to produce object post-processors. -
Method Summary
Modifier and TypeMethodDescriptionstatic PostProcessor.Factory
methodsAnnotated
(Class<? extends Annotation> annotation) Discover methods annotated with the designated post-processor annotation in object-mapped types and their supertypes.static PostProcessor.Factory
Discover methods annotated with thePostProcess
annotation.void
postProcess
(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 thePostProcess
annotation.All restrictions from
methodsAnnotated(Class)
apply to these annotated methods.- Returns:
- a new factory for discovering annotated methods
- Since:
- 4.2.0
- See Also:
-