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

public abstract class BeanContextable extends Context
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.
  • Constructor Details

  • Method Details

    • getBeanContext

      Returns the bean context for this object.
      Returns:
      The bean context for this object.
    • properties

      protected JsonMap properties()
      Description copied from class: Context
      Returns the properties on this bean as a map for debugging.
      Overrides:
      properties in class Context
      Returns:
      The properties on this bean as a map for debugging.