public class ErrorHandlerFactory extends Object
ErrorHandler.| Constructor and Description |
|---|
ErrorHandlerFactory(ClassLoader classLoader,
org.springframework.beans.factory.BeanFactory beanFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorHandler |
createErrorHandler(Collection<String> packages)
|
ErrorHandler |
createErrorHandler(String... packages)
|
void |
resetCache()
Clears the cache stored in this factory
(i.e will make it perform package scanning again when asking for an error handler).
|
void |
resetCache(Collection<String> packages)
Clears the cache for the given
packages. |
void |
resetCache(String... packages)
Clears the cache for the given
packages. |
public ErrorHandlerFactory(ClassLoader classLoader, org.springframework.beans.factory.BeanFactory beanFactory)
classLoader - The ClassLoader used to scan packages.beanFactory - The BeanFactory used to get beans (if they exists)
of the scanned ExceptionHandlerspublic void resetCache()
public void resetCache(String... packages)
packages.packages - The packages whose cache will be cleared.public void resetCache(Collection<String> packages)
packages.packages - The packages whose cache will be cleared.public ErrorHandler createErrorHandler(String... packages)
packages - The packages to be scanned for ExceptionHandlers.ErrorHandler.ExceptionHandlerObject,
ExceptionHandlerpublic ErrorHandler createErrorHandler(Collection<String> packages)
packages - The packages to be scanned for ExceptionHandlers.ErrorHandler.ExceptionHandlerObject,
ExceptionHandlerCopyright © 2018. All rights reserved.