Interface InterceptionProxier
public interface InterceptionProxier
A creator of proxies for business method interceptions.
- Author:
- Laird Nelson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAProxySpecificationthat exposesInterceptorMethod-related information. -
Method Summary
Modifier and TypeMethodDescription<I> IinterceptionProxy(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 benullinstanceSupplier- aSupplierof contextual instances of the appropriate type; must not benullaroundInvokeInterceptions- aMapofInterceptorMethods indexed by theExecutableElementto which they apply; must not benull- Returns:
- a non-
nullinterception proxy - Throws:
NullPointerException- if any argument isnull
-