public class SystemIncludeRegexPatternTypeFilter extends Object implements org.springframework.core.type.filter.TypeFilter
TypeFilter
for using with context:component-scan: include-filter
Spring element.
This filter checks system and environment property "" and if defined then property value
is used for Pattern
compilation and only classes which match the pattern are included.
If there is no property defined then all Spring CamelConfiguration
beans are included.
System property has higher priority.
Example:
<context:component-scan base-package="org.openhubframework.openhub.core" use-default-filters="false"> <context:include-filter type="custom" expression="org.openhubframework.openhub.core.common.spring.SystemIncludeRegexPatternTypeFilter"/> </context:component-scan>
Remember: include filters are applied after exclude filters.
SystemExcludeRegexPatternTypeFilter
Constructor and Description |
---|
SystemIncludeRegexPatternTypeFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
match(org.springframework.core.type.classreading.MetadataReader metadataReader,
org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) |
public boolean match(org.springframework.core.type.classreading.MetadataReader metadataReader, org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory) throws IOException
match
in interface org.springframework.core.type.filter.TypeFilter
IOException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.