Package io.micronaut.aop
Interface HotSwappableInterceptedProxy<T>
-
- Type Parameters:
T- The declaring type
- All Superinterfaces:
Intercepted,io.micronaut.inject.proxy.InterceptedBean,io.micronaut.inject.proxy.InterceptedBeanProxy<T>,InterceptedProxy<T>,io.micronaut.inject.qualifiers.Qualified<T>
public interface HotSwappableInterceptedProxy<T> extends InterceptedProxy<T>
Extended version of
InterceptedProxythat allows swapping out the previous instance.At compile time an implementation is generated that uses a
ReentrantReadWriteLockto maintain a reference to the target of the proxy- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tswap(T newInstance)Swaps the underlying proxied instance for a new instance.-
Methods inherited from interface io.micronaut.aop.InterceptedProxy
hasCachedInterceptedTarget, interceptedTarget
-
-