Interface InterceptedBean
- All Known Subinterfaces:
HotSwappableInterceptedProxy<T>, Intercepted, InterceptedBeanProxy<T>, InterceptedProxy<T>, Introduced
An internal interface implemented by generated proxy classes.
Inject aware version of AOP interface.
- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<? extends BeanRegistration<?>> The interceptor registrations the proxy retained when it was constructed.default ExecutableMethod<?,?>[] Returns a defensive copy of the generated executable methods used by the proxy invocation chain.
-
Method Details
-
interceptedMethods
Returns a defensive copy of the generated executable methods used by the proxy invocation chain.- Returns:
- The generated executable methods copy
- Since:
- 5.1.0
-
$interceptorRegistrations
The interceptor registrations the proxy retained when it was constructed.Declared here, in the inject module, so that the context can reach them without depending on the AOP module. A proxy is the only thing that survives from a bean's creation to its destruction, and when the context tracks no registration for the instance the registrations it retained are the only record of the interceptors created for it.
io.micronaut.aop.Interceptednarrows the element type.- Returns:
- The retained interceptor registrations, never
null - Since:
- 5.2.0
-