public abstract class AnnotationErrorHandlerCreationConfigurer<A extends Annotation> extends AbstractErrorHandlerCreationConfigurer
ErrorHandler creation,
using an Annotation to get packages to be scanned.| Modifier | Constructor and Description |
|---|---|
protected |
AnnotationErrorHandlerCreationConfigurer(ErrorHandlerFactory errorHandlerFactory)
Protected constructor, in order to let it be initialized only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<A> |
getAnnotationClass() |
protected Collection<String> |
getPackagesCollection()
Returns a
Collection of package names to be used by the ErrorHandlerFactory
to create the ErrorHandler. |
protected abstract Collection<String> |
getPackagesCollectionFromAnnotation(A annotation)
Retrieves a
Collection of packages names from the given annotation. |
afterPropertiesSet, getImportMetadata, setImportMetadataprotected AnnotationErrorHandlerCreationConfigurer(ErrorHandlerFactory errorHandlerFactory)
errorHandlerFactory - The ErrorHandlerFactory to be used to create the ErrorHandler bean.protected Collection<String> getPackagesCollection() throws ClassNotFoundException
AbstractErrorHandlerCreationConfigurerCollection of package names to be used by the ErrorHandlerFactory
to create the ErrorHandler.getPackagesCollection in class AbstractErrorHandlerCreationConfigurerCollection of packages names.ClassNotFoundExceptionprotected abstract Collection<String> getPackagesCollectionFromAnnotation(A annotation)
Collection of packages names from the given annotation.annotation - The annotation from which packages will be retrieved.Collection of packages names to be retrieved by the getPackagesCollection() method.Copyright © 2018. All rights reserved.