@Documented @Target(value=TYPE) @Retention(value=RUNTIME) public @interface ErrorHandler
InterceptorErrorHandler
and it should have a default constructor, an
instance of the error handler will be created and associated with each interceptor.
If there are initialization parameters to be used in the error handler implementation you may use the spring bean
approach to configure the error handler, where the bean
attribute should refer to an existing spring
bean identifier which is an instance of the specified type, initialized with spring, and the bean should also be an
implementation of the InterceptorErrorHandler
so does the type
Modifier and Type | Required Element and Description |
---|---|
Class<? extends InterceptorErrorHandler> |
type |
public abstract Class<? extends InterceptorErrorHandler> type
public abstract String bean
Copyright © 2010–2016 AdroitLogic. All rights reserved.