@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 a
RefreshEvent
until the method completes.
Constructor and Description |
---|
RefreshInterceptor(RefreshScope refreshScope) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(io.micronaut.aop.MethodInvocationContext context) |
public RefreshInterceptor(RefreshScope refreshScope)
refreshScope
- To allow target beans to be refreshed