Interface PostProcessor
-
public interface PostProcessor
A callback executed after all field serialization has been performed.- Since:
- 4.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PostProcessor.Factory
A factory to produce object post-processors.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PostProcessor.Factory
methodsAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Discover methods annotated with the designated post-processor annotation in object-mapped types and their supertypes.static PostProcessor.Factory
methodsAnnotatedPostProcess()
Discover methods annotated with thePostProcess
annotation.void
postProcess(java.lang.Object instance)
Perform post-processing on the fully deserialized instance.
-
-
-
Method Detail
-
postProcess
void postProcess(java.lang.Object instance) throws SerializationException
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
static PostProcessor.Factory methodsAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
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
static PostProcessor.Factory 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:
methodsAnnotated(Class)
-
-