Package org.apache.juneau
Class BeanContextable
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
- All Implemented Interfaces:
AnnotationProvider
- 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
-
Field Summary
Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER
Fields inherited from interface org.apache.juneau.AnnotationProvider
DEFAULT, DISABLE_ANNOTATION_CACHING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the bean context for this object.protected JsonMap
Returns the properties on this bean as a map for debugging.Methods inherited from class org.apache.juneau.Context
copy, createBuilder, createSession, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, getSession, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
-
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:Context
Returns the properties on this bean as a map for debugging.- Overrides:
properties
in classContext
- Returns:
- The properties on this bean as a map for debugging.
-