Package org.apache.juneau
Class BeanContextable
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
- Direct Known Subclasses:
BaseHttpPartParser,BaseHttpPartSerializer,BeanTraverseContext,Parser,RestClient
Context class for classes that use
BeanContext 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 Classes -
Field Summary
FieldsFields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bean context for this object.Returns the properties on this bean as a map for debugging.Methods inherited from class org.apache.juneau.Context
copy, createBuilder, createSession, getAnnotationProvider, getSession, init, isDebug, toString
-
Field Details
-
beanContext
-
-
Constructor Details
-
BeanContextable
Constructor.- Parameters:
b- The builder for this object.
-
-
Method Details
-
getBeanContext
Returns the bean context for this object.- Returns:
- The bean context for this object.
-
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.
-