Class RefreshInterceptor
- java.lang.Object
-
- io.micronaut.runtime.context.scope.refresh.RefreshInterceptor
-
- All Implemented Interfaces:
io.micronaut.aop.Interceptor
,io.micronaut.aop.MethodInterceptor
,io.micronaut.core.order.Ordered
@Singleton @Requires(notEnv={"function","android"}) public class RefreshInterceptor extends java.lang.Object implements io.micronaut.aop.MethodInterceptor
A
MethodInterceptor
that will lock the bean preventing it from being destroyed by aRefreshEvent
until the method completes.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description RefreshInterceptor(RefreshScope refreshScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
intercept(io.micronaut.aop.MethodInvocationContext context)
-
-
-
Constructor Detail
-
RefreshInterceptor
public RefreshInterceptor(RefreshScope refreshScope)
- Parameters:
refreshScope
- To allow target beans to be refreshed
-
-