Interface BeanPropertyPostProcessor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Bean-modeling SPI seam that applies marshalling-side post-processing to a BeanPropertyMeta.Builder after BeanPropertyMeta.Builder#validate() succeeds.

On the marshalling-side path, post-processing reads @MarshalledProp / @Swap / @Uri annotations and installs swap-aware read/write transforms on the builder. The bean-modeling layer in commons.bean never touches those marshalling-side concerns directly; it just invokes this hook.

The default NOOP implementation does nothing and is wired on the commons-side path.

The marshallingContext parameter remains Object so this commons-side SPI does not depend on marshalling-side runtime types.

Thread safety
Thread safety depends on implementation.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Singleton commons-side default — no marshalling-side post-processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(Object marshallingContext, BeanPropertyMeta.Builder builder)
    Applies marshalling-side post-processing to the supplied builder.
  • Field Details

  • Method Details

    • process

      void process(Object marshallingContext, BeanPropertyMeta.Builder builder)
      Applies marshalling-side post-processing to the supplied builder.
      Parameters:
      marshallingContext - The marshalling-side context (as an opaque Object). May be null when invoked from the commons-side construction path.
      builder - The bean-property builder to mutate. Must not be null.