Package org.apache.juneau.commons.bean
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BeanPropertyPostProcessorSingleton commons-side default — no marshalling-side post-processing. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(Object marshallingContext, BeanPropertyMeta.Builder builder) Applies marshalling-side post-processing to the supplied builder.
-
Field Details
-
NOOP
Singleton commons-side default — no marshalling-side post-processing.
-
-
Method Details
-
process
Applies marshalling-side post-processing to the supplied builder.- Parameters:
marshallingContext- The marshalling-side context (as an opaqueObject). May benull when invoked from the commons-side construction path.builder- The bean-property builder to mutate. Must not benull .
-