org.apache.camel.impl.scan
Class AnnotatedWithPackageScanFilter
java.lang.Object
org.apache.camel.impl.scan.AnnotatedWithPackageScanFilter
- All Implemented Interfaces:
- PackageScanFilter
public class AnnotatedWithPackageScanFilter
- extends Object
- implements PackageScanFilter
Package scan filter for testing if a given class is annotated with a certain annotation.
AnnotatedWithPackageScanFilter
public AnnotatedWithPackageScanFilter(Class<? extends Annotation> annotation)
AnnotatedWithPackageScanFilter
public AnnotatedWithPackageScanFilter(Class<? extends Annotation> annotation,
boolean checkMetaAnnotations)
matches
public boolean matches(Class<?> type)
- Description copied from interface:
PackageScanFilter
- Does the given class match
- Specified by:
matches
in interface PackageScanFilter
- Parameters:
type
- the class
- Returns:
- true to include this class, false to skip it.
toString
public String toString()
- Overrides:
toString
in class Object
Apache Camel