public final class AnnotationsScannerConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<ClassLoader> |
classLoaders |
protected AnnotationsScannerLogger |
logger |
protected MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo> |
metadataAdapter |
protected AnnotationsScannerResourceFactory |
resourceFactory |
protected Set<AnnotationsScannerResource<?>> |
resources |
| Modifier and Type | Method and Description |
|---|---|
AnnotationsScanner |
build()
Build AnnotationScanner with current configuration
|
AnnotationsScannerConfiguration |
includeClasses(Class<?>... classes)
Include classes
|
AnnotationsScannerConfiguration |
includeClassLoaders(boolean includeParents,
ClassLoader... classLoaders)
Include specified class loaders
|
AnnotationsScannerConfiguration |
includeClassLoaders(ClassLoader... classLoaders)
Include class loaders
|
AnnotationsScannerConfiguration |
includeDefaultClassLoaders()
Include class loaders used by application by default
|
AnnotationsScannerConfiguration |
includeJavaClassPath()
Include Java Class Path
|
AnnotationsScannerConfiguration |
includePath(String... paths)
Include paths
|
AnnotationsScannerConfiguration |
includeResources(URL... urls)
Include URLs
|
AnnotationsScannerConfiguration |
logger(@Nullable org.slf4j.Logger logger)
Register logger used by AnnotationsScanner
|
AnnotationsScannerConfiguration |
metadataAdapter(MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo> adapter)
Register custom metadata adapter used to gain data from classes without loading them by class loader
|
AnnotationsScannerConfiguration |
muted()
Mute logger by default
|
protected final Set<ClassLoader> classLoaders
protected final Set<AnnotationsScannerResource<?>> resources
protected final AnnotationsScannerResourceFactory resourceFactory
protected AnnotationsScannerLogger logger
protected MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo> metadataAdapter
public AnnotationsScannerConfiguration logger(@Nullable @Nullable org.slf4j.Logger logger)
logger - the logger to use, if null, scanner won't log anythingpublic AnnotationsScannerConfiguration muted()
public AnnotationsScannerConfiguration includeDefaultClassLoaders()
public AnnotationsScannerConfiguration includeJavaClassPath()
public AnnotationsScannerConfiguration includeClasses(Class<?>... classes)
classes - classes to includepublic AnnotationsScannerConfiguration includeClassLoaders(ClassLoader... classLoaders)
classLoaders - class loaders to includepublic AnnotationsScannerConfiguration includeClassLoaders(boolean includeParents, ClassLoader... classLoaders)
includeParents - if true the configuration will include also parents of the specified class loadersclassLoaders - class loaders to includeClassLoader.getParent()public AnnotationsScannerConfiguration includePath(String... paths)
paths - paths to includepublic AnnotationsScannerConfiguration includeResources(@Nullable URL... urls)
urls - urls to includepublic AnnotationsScannerConfiguration metadataAdapter(MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo> adapter)
adapter - the adapter to use by scannerpublic AnnotationsScanner build()
Copyright © 2020. All rights reserved.