net.sf.tie.ext.factory
Interface InterceptorFactory
- All Known Implementing Classes:
- DynamicInterceptorFactory, SimpleInterceptorFactory
public interface InterceptorFactory
Provides MethodInterceptor
implementations to a DynamicInterceptorStack
.
The factory may create a new interceptor for each call, or it may return an existing interceptor.
getInterceptor
<T> MethodInterceptor getInterceptor(Class<T> type,
T endPoint)
- Returns:
- The interceptor to be used for
type
and endPoint
, or
null
if no interceptor is required.
The interceptor may be specifically configured accordin to the arguments or,
alternatively, the same interceptor may be returned for all invocations. - See Also:
ConditionalInterceptor
,
MultiInterceptor