@Singleton @Requires(notEnv={"function","android"}) public class RefreshInterceptor extends java.lang.Object implements MethodInterceptor
A MethodInterceptor
that will lock the bean preventing it from being destroyed by a
RefreshEvent
until the method completes.
HOTSWAP, LAZY, PROXY_TARGET
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
RefreshInterceptor(RefreshScope refreshScope) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(MethodInvocationContext context)
Extended version of the
MethodInterceptor.intercept(InvocationContext) method that accepts a MethodInvocationContext . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
intercept
public RefreshInterceptor(RefreshScope refreshScope)
refreshScope
- To allow target beans to be refreshedpublic java.lang.Object intercept(MethodInvocationContext context)
MethodInterceptor
MethodInterceptor.intercept(InvocationContext)
method that accepts a MethodInvocationContext
.intercept
in interface MethodInterceptor
context
- The context