java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.common.ExcludeTypeFilter
All Implemented Interfaces:
org.springframework.core.type.filter.TypeFilter

public abstract class ExcludeTypeFilter extends Object implements org.springframework.core.type.filter.TypeFilter
Excludes specific BaSyX classes in classpath from spring component scan.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private List<String>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Initializes the default filters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
     
    protected void
    Re-enables a package indicated as exclusion prefix.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • excludePackages

      private List<String> excludePackages
  • Constructor Details

    • ExcludeTypeFilter

      protected ExcludeTypeFilter()
      Initializes the default filters.
  • Method Details

    • removeExclude

      protected void removeExclude(String pkg)
      Re-enables a package indicated as exclusion prefix.
      Parameters:
      pkg - the package (prefix)
    • 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
      Throws:
      IOException