Interface HotSwappableInterceptedProxy<T>

Type Parameters:
T - The declaring type
All Superinterfaces:
Intercepted, InterceptedBean, InterceptedBeanProxy<T>, InterceptedProxy<T>, Qualified<T>

public interface HotSwappableInterceptedProxy<T> extends InterceptedProxy<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 Details

    • swap

      T swap(T newInstance)
      Swaps the underlying proxied instance for a new instance.
      Parameters:
      newInstance - The new instance
      Returns:
      The old instance