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 Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitializes the default filters. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddExclusion(String pkg) Enables a package indicated as inclusion prefix.protected voidaddInclusion(String pkg) Enables a package indicated as inclusion prefix.booleanmatch(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory)
-
Field Details
-
includePackages
-
excludePackages
-
-
Constructor Details
-
InclusionBasedTypeFilter
protected InclusionBasedTypeFilter()Initializes the default filters.
-
-
Method Details
-
addInclusion
Enables a package indicated as inclusion prefix.- Parameters:
pkg- the package (prefix)
-
addExclusion
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:
matchin interfaceorg.springframework.core.type.filter.TypeFilter- Throws:
IOException
-