Package org.apache.juneau.marshall
Class MarshallingContextable
java.lang.Object
org.apache.juneau.marshall.Context
org.apache.juneau.marshall.MarshallingContextable
- Direct Known Subclasses:
BaseHttpPartParser,BaseHttpPartSerializer,MarshallingTraverseContext,Parser,RestClient
Context class for classes that use
MarshallingContext objects.
This abstraction exists to allow different kinds of subclasses (e.g. JsonSerilalizer, XmlParser...) to share bean context objects since bean context objects are heavyweight objects that cache metadata about encountered beans.
Notes:
- This class is thread safe and reusable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class. -
Field Summary
FieldsFields inherited from class org.apache.juneau.marshall.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final DurationFormatDuration wire format.Returns the bean context for this object.protected final PeriodFormatPeriod wire format.Returns the properties on this bean as a map for debugging.Methods inherited from class org.apache.juneau.marshall.Context
copy, createBuilder, createSession, getAnnotationProvider, getSession, init, isDebug, toString
-
Field Details
-
marshallingContext
-
-
Constructor Details
-
MarshallingContextable
Constructor.- Parameters:
b- The builder for this object.
Cannot benull .
-
-
Method Details
-
getMarshallingContext
Returns the bean context for this object.- Returns:
- The bean context for this object.
-
getDurationFormat
Duration wire format.- Returns:
- The configured duration wire format.
-
getPeriodFormat
Period wire format.- Returns:
- The configured period wire format.
-
properties
Description copied from class:ContextReturns the properties on this bean as a map for debugging.- Overrides:
propertiesin classContext- Returns:
- The properties on this bean as a map for debugging.
-