com.fasterxml.jackson.databind

Class DatabindContext

    • Constructor Detail

      • DatabindContext

        public DatabindContext()
    • Method Detail

      • getConfig

        public abstract MapperConfig<?> getConfig()
        Accessor to currently active configuration (both per-request configs and per-mapper config).
      • getAnnotationIntrospector

        public abstract AnnotationIntrospector getAnnotationIntrospector()
        Convenience method for accessing serialization view in use (if any); equivalent to:
           getConfig().getAnnotationIntrospector();
        
      • isEnabled

        public final boolean isEnabled(MapperFeature feature)
        Convenience method for checking whether specified serialization feature is enabled or not. Shortcut for:
          getConfig().isEnabled(feature);
        
      • canOverrideAccessModifiers

        public final boolean canOverrideAccessModifiers()
        Convenience method for accessing serialization view in use (if any); equivalent to:
           getConfig().canOverrideAccessModifiers();
        
      • getActiveView

        public abstract Class<?> getActiveView()
        Accessor for locating currently active view, if any; returns null if no view has been set.
      • constructType

        public JavaType constructType(Type type)
        Convenience method for constructing JavaType for given JDK type (usually Class)
      • constructSpecializedType

        public JavaType constructSpecializedType(JavaType baseType,
                                        Class<?> subclass)
        Convenience method for constructing subtypes, retaining generic type parameter (if any)
      • getTypeFactory

        public abstract TypeFactory getTypeFactory()

Copyright © 2012-2013 FasterXML. All Rights Reserved.