Class AnnotationCustomizableTypeExcludeFilter

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.type.filter.TypeFilter

    public abstract class AnnotationCustomizableTypeExcludeFilter
    extends org.springframework.boot.context.TypeExcludeFilter
    implements org.springframework.beans.factory.BeanClassLoaderAware
    Abstract base class for a TypeExcludeFilter that can be customized using an annotation.
    Since:
    1.4.0
    • Method Detail

      • setBeanClassLoader

        public void setBeanClassLoader​(ClassLoader classLoader)
        Specified by:
        setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
      • match

        public boolean match​(org.springframework.core.type.classreading.MetadataReader metadataReader,
                             org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
                      throws IOException
        Specified by:
        match in interface org.springframework.core.type.filter.TypeFilter
        Overrides:
        match in class org.springframework.boot.context.TypeExcludeFilter
        Throws:
        IOException
      • include

        protected boolean include​(org.springframework.core.type.classreading.MetadataReader metadataReader,
                                  org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
                           throws IOException
        Throws:
        IOException
      • defaultInclude

        protected boolean defaultInclude​(org.springframework.core.type.classreading.MetadataReader metadataReader,
                                         org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
                                  throws IOException
        Throws:
        IOException
      • exclude

        protected boolean exclude​(org.springframework.core.type.classreading.MetadataReader metadataReader,
                                  org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
                           throws IOException
        Throws:
        IOException
      • isTypeOrAnnotated

        protected final boolean isTypeOrAnnotated​(org.springframework.core.type.classreading.MetadataReader metadataReader,
                                                  org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory,
                                                  Class<?> type)
                                           throws IOException
        Throws:
        IOException
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.springframework.boot.context.TypeExcludeFilter
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.springframework.boot.context.TypeExcludeFilter