Class InclusionBasedTypeFilter

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.apps.common.InclusionBasedTypeFilter
All Implemented Interfaces:
org.springframework.core.type.filter.TypeFilter
Direct Known Subclasses:
AasEnvironmentTypeFilter, AasRegistryTypeFilter, AasRepositoryTypeFilter, AutodiscoveryTypeFilter, ConceptRepositoryTypeFilter, SubmodelRegistryTypeFilter, SubmodelRepositoryTypeFilter

public abstract class InclusionBasedTypeFilter extends Object implements org.springframework.core.type.filter.TypeFilter
Includes specific BaSyX classes in classpath for spring component scan.
Author:
Holger Eichelberger, SSE
  • Field Details

    • includePackages

      private List<String> includePackages
    • excludePackages

      private List<String> excludePackages
  • Constructor Details

    • InclusionBasedTypeFilter

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

    • addInclusion

      protected void addInclusion(String pkg)
      Enables a package indicated as inclusion prefix.
      Parameters:
      pkg - the package (prefix)
    • addExclusion

      protected void addExclusion(String pkg)
      Enables a package indicated as inclusion 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