Interface InterceptionProxier
public interface InterceptionProxier
A creator of proxies for business method interceptions.
- Author:
- Laird Nelson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
AProxySpecification
that exposesInterceptorMethod
-related information. -
Method Summary
Modifier and TypeMethodDescription<I> I
interceptionProxy
(Id id, Supplier<? extends I> instanceSupplier, Map<ExecutableElement, List<InterceptorMethod>> aroundInvokeInterceptions) Creates an interception proxy for a given contextual instance.
-
Method Details
-
interceptionProxy
<I> I interceptionProxy(Id id, Supplier<? extends I> instanceSupplier, Map<ExecutableElement, List<InterceptorMethod>> aroundInvokeInterceptions) Creates an interception proxy for a given contextual instance.- Type Parameters:
I
- the contextual instance type- Parameters:
id
- anId
; must not benull
instanceSupplier
- aSupplier
of contextual instances of the appropriate type; must not benull
aroundInvokeInterceptions
- aMap
ofInterceptorMethod
s indexed by theExecutableElement
to which they apply; must not benull
- Returns:
- a non-
null
interception proxy - Throws:
NullPointerException
- if any argument isnull
-