Package io.micronaut.aop
Interface HotSwappableInterceptedProxy<T>
- Type Parameters:
T- The declaring type
- All Superinterfaces:
Intercepted,InterceptedBean,InterceptedBeanProxy<T>,InterceptedProxy<T>,Qualified<T>
Extended version of InterceptedProxy that allows swapping out the previous instance.
At compile time an implementation is generated that uses a ReentrantReadWriteLock to maintain a reference to the target of the proxy
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Methods inherited from interface io.micronaut.aop.InterceptedProxy
hasCachedInterceptedTarget, interceptedTargetMethods inherited from interface io.micronaut.inject.qualifiers.Qualified
$withBeanQualifier
-
Method Details
-
swap
Swaps the underlying proxied instance for a new instance.- Parameters:
newInstance- The new instance- Returns:
- The old instance
-