org.apache.camel.impl.scan
Class AnnotatedWithAnyPackageScanFilter

java.lang.Object
  extended by org.apache.camel.impl.scan.AnnotatedWithAnyPackageScanFilter
All Implemented Interfaces:
PackageScanFilter

public class AnnotatedWithAnyPackageScanFilter
extends Object
implements PackageScanFilter

Package scan filter for testing if a given class is annotated with any of the annotations.


Constructor Summary
AnnotatedWithAnyPackageScanFilter(Set<Class<? extends Annotation>> annotations)
           
AnnotatedWithAnyPackageScanFilter(Set<Class<? extends Annotation>> annotations, boolean checkMetaAnnotations)
           
 
Method Summary
 boolean matches(Class<?> type)
          Does the given class match
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedWithAnyPackageScanFilter

public AnnotatedWithAnyPackageScanFilter(Set<Class<? extends Annotation>> annotations)

AnnotatedWithAnyPackageScanFilter

public AnnotatedWithAnyPackageScanFilter(Set<Class<? extends Annotation>> annotations,
                                         boolean checkMetaAnnotations)
Method Detail

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