Interface InterceptedBean

All Known Subinterfaces:
HotSwappableInterceptedProxy<T>, Intercepted, InterceptedBeanProxy<T>, InterceptedProxy<T>, Introduced

@Internal public interface InterceptedBean
An internal interface implemented by generated proxy classes. Inject aware version of AOP interface.
Since:
3.5.0
Author:
Denis Stepanov
  • Method Details

    • interceptedMethods

      default ExecutableMethod<?,?>[] 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

      default List<? extends BeanRegistration<?>> $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.Intercepted narrows the element type.

      Returns:
      The retained interceptor registrations, never null
      Since:
      5.2.0