Package io.micronaut.aop
The main classes implementing cross cutting behavior in Micronaut.
- Since:
- 1.0
-
Interface Summary Interface Description ConstructorInterceptor<T> AConstructorInterceptorextends the defaultInterceptorinterface and allows intercepting constructors.ConstructorInvocationContext<T> AnInvocationContextfor construction invocation.HotSwappableInterceptedProxy<T> Extended version ofInterceptedProxythat allows swapping out the previous instance.Intercepted An interface implemented by generated proxy classes.InterceptedMethod The intercept method supporting intercepting different reactive invocations.InterceptedProxy<T> AInterceptedthat proxies another instance.Interceptor<T,R> An Interceptor intercepts the execution of a method allowing cross cutting behaviour to be applied to a method's execution.InterceptorRegistry Strategy interface for looking up interceptors from the bean context.Introduced Marker interface for instances that are implemented automatically viaIntroductionadvise.InvocationContext<T,R> An InvocationContext passed to one or manyInterceptorinstances.MethodInterceptor<T,R> A MethodInterceptor extends the genericInterceptorand provides an interface more specific to method interception.MethodInvocationContext<T,R> Extended version ofInvocationContextforMethodInterceptorinstances. -
Class Summary Class Description Adapter.InternalAttributes Internal attributes for the adapter annotation. -
Enum Summary Enum Description Around.ProxyTargetConstructorMode When usingAround.proxyTarget()on aFactorymethod if the returned bean features constructor arguments this can lead to undefined behaviour since it is expected with factory methods that the developer is responsible for constructing the object.InterceptedMethod.ResultType Possible result types.InterceptorKind Enum representing different interceptors kinds.InterceptPhase Interceptorclasses implement theOrderedinterface in order to control the order of execution when multiple interceptors are present. -
Annotation Types Summary Annotation Type Description Adapter AnAdapteris advice applicable to a method that will create an entirely new bean definition that delegates to the annotated method.Around Annotation stereotype to applied to other annotations to indicate the annotation provides Around advice.AroundConstruct Allows intercepting the bean constructor.InterceptorBean A meta-annotation that can be used onMethodInterceptordeclarations to specify theInterceptorBindingand make the type a bean.InterceptorBinding AnInterceptorBindingis used as a meta-annotation onAroundandIntroductionadvice to indicate that AOP advice should be applied to the method and that any annotations that feature this stereotype annotation should be used to resolve associated interceptors at runtime.InterceptorBindingDefinitions Repeatable wrapper forInterceptorBinding.Introduction Introduction advice allows interfaces and abstract classes to be implemented at compile time byMethodInterceptorimplementations.