Package io.micronaut.aop
package io.micronaut.aop
The main classes implementing cross-cutting behavior in Micronaut.
- Since:
- 1.0
- Author:
- graemerocher
-
ClassDescriptionAn
Adapter
is advice applicable to a method that will create an entirely new bean definition that delegates to the annotated method.Internal attributes for the adapter annotation.Annotation stereotype to applied to other annotations to indicate the annotation provides Around advice.When usingAround.proxyTarget()
on aFactory
method 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.Allows intercepting the bean constructor.AConstructorInterceptor
extends the defaultInterceptor
interface and allows intercepting constructors.AnInvocationContext
for construction invocation.Extended version ofInterceptedProxy
that allows swapping out the previous instance.An interface implemented by generated proxy classes.The intercept method supporting intercepting different reactive invocations.Possible result types.AIntercepted
that 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.A meta-annotation that can be used onMethodInterceptor
declarations to specify theInterceptorBinding
and make the type a bean.AnInterceptorBinding
is used as a meta-annotation onAround
andIntroduction
advice 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.Repeatable wrapper forInterceptorBinding
.Enum representing different interceptors kinds.Strategy interface for looking up interceptors from the bean context.Interceptor
classes implement theOrdered
interface in order to control the order of execution when multiple interceptors are present.Marker interface for instances that are implemented automatically viaIntroduction
advise.Introduction advice allows interfaces and abstract classes to be implemented at compile time byMethodInterceptor
implementations.InvocationContext<T,R> An InvocationContext passed to one or manyInterceptor
instances.MethodInterceptor<T,R> A MethodInterceptor extends the genericInterceptor
and provides an interface more specific to method interception.Extended version ofInvocationContext
forMethodInterceptor
instances.