|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PackageScanClassResolver
A resolver that can find resources based on package scanning.
| Method Summary | |
|---|---|
void |
addClassLoader(java.lang.ClassLoader classLoader)
Adds the class loader to the existing loaders |
void |
addFilter(PackageScanFilter filter)
Add a filter that will be applied to all scan operations |
java.util.Set<java.lang.Class<?>> |
findAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String... packageNames)
Attempts to discover classes that are annotated with to the annotation. |
java.util.Set<java.lang.Class<?>> |
findAnnotated(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations,
java.lang.String... packageNames)
Attempts to discover classes that are annotated with to the annotation. |
java.util.Set<java.lang.Class<?>> |
findByFilter(PackageScanFilter filter,
java.lang.String... packageNames)
Attempts to discover classes filter by the provided filter |
java.util.Set<java.lang.Class<?>> |
findImplementations(java.lang.Class<?> parent,
java.lang.String... packageNames)
Attempts to discover classes that are assignable to the type provided. |
java.util.Set<java.lang.ClassLoader> |
getClassLoaders()
Gets the ClassLoader instances that should be used when scanning for classes. |
void |
removeFilter(PackageScanFilter filter)
Removes the filter |
void |
setClassLoaders(java.util.Set<java.lang.ClassLoader> classLoaders)
Deprecated. will be removed in Camel 3.0. Use addClassLoader(ClassLoader) instead. |
| Method Detail |
|---|
@Deprecated void setClassLoaders(java.util.Set<java.lang.ClassLoader> classLoaders)
addClassLoader(ClassLoader) instead.
classLoaders - loaders to use when scanning for classesjava.util.Set<java.lang.ClassLoader> getClassLoaders()
addClassLoader(ClassLoader) method if you want to add new classloaders
to the class loaders list.
void addClassLoader(java.lang.ClassLoader classLoader)
classLoader - the loader to add
java.util.Set<java.lang.Class<?>> findAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String... packageNames)
annotation - the annotation that should be present on matching classespackageNames - one or more package names to scan (including subpackages) for classes
java.util.Set<java.lang.Class<?>> findAnnotated(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations,
java.lang.String... packageNames)
annotations - the annotations that should be present (any of them) on matching classespackageNames - one or more package names to scan (including subpackages) for classes
java.util.Set<java.lang.Class<?>> findImplementations(java.lang.Class<?> parent,
java.lang.String... packageNames)
parent - the class of interface to find subclasses or implementations ofpackageNames - one or more package names to scan (including subpackages) for classes
java.util.Set<java.lang.Class<?>> findByFilter(PackageScanFilter filter,
java.lang.String... packageNames)
filter - filter to filter desired classes.packageNames - one or more package names to scan (including subpackages) for classes
void addFilter(PackageScanFilter filter)
filter - filter to filter desired classes in all scan operationsvoid removeFilter(PackageScanFilter filter)
filter - filter to filter desired classes in all scan operations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||