Interface PostProcessor


  • public interface PostProcessor
    A callback executed after all field serialization has been performed.
    Since:
    4.2.0
    • 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