Class TypeContextFactory


  • public class TypeContextFactory
    extends Object
    Factory class for creating TypeContext instances.
    • Constructor Detail

      • TypeContextFactory

        public TypeContextFactory()
    • Method Detail

      • createDefaultTypeContext

        public static TypeContext createDefaultTypeContext()
        Create the default TypeContext with AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.
        This is equivalent to calling: TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)
        Returns:
        created TypeContext instance
      • createDefaultTypeContext

        public static TypeContext createDefaultTypeContext​(SchemaGeneratorConfig config)
        Create the default TypeContext with AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED.
        This is equivalent to calling: TypeContextFactory.createTypeContext(AnnotationInclusion.INCLUDE_AND_INHERIT_IF_INHERITED)
        Parameters:
        config - configuration to consider
        Returns:
        created TypeContext instance
      • createTypeContext

        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationInclusion annotationInclusion)
        Create the a TypeContext with the given AnnotationInclusion.
        This is equivalent to calling: TypeContextFactory.createTypeContext(new AnnotationConfiguration.StdConfiguration(annotationInclusion))
        Parameters:
        annotationInclusion - indication which annotations to include during type resolution/introspection
        Returns:
        created TypeContext instance
      • createTypeContext

        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationInclusion annotationInclusion,
                                                    SchemaGeneratorConfig config)
        Create the a TypeContext with the given AnnotationInclusion.
        This is equivalent to calling: TypeContextFactory.createTypeContext(new AnnotationConfiguration.StdConfiguration(annotationInclusion))
        Parameters:
        annotationInclusion - indication which annotations to include during type resolution/introspection
        config - configuration to consider
        Returns:
        created TypeContext instance
      • createTypeContext

        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationConfiguration annotationConfig)
        Create the a TypeContext with the given AnnotationConfiguration.
        Parameters:
        annotationConfig - configuration determining which annotations to include during type resolution/introspection
        Returns:
        created TypeContext instance
      • createTypeContext

        public static TypeContext createTypeContext​(com.fasterxml.classmate.AnnotationConfiguration annotationConfig,
                                                    SchemaGeneratorConfig config)
        Create the a TypeContext with the given AnnotationConfiguration.
        Parameters:
        annotationConfig - configuration determining which annotations to include during type resolution/introspection
        config - configuration to consider
        Returns:
        created TypeContext instance