类 HotSwappableTargetSource

java.lang.Object
cn.taketoday.aop.target.HotSwappableTargetSource
所有已实现的接口:
TargetClassAware, TargetSource, Serializable

public class HotSwappableTargetSource extends Object implements TargetSource, Serializable
TargetSource implementation that caches a local target object, but allows the target to be swapped while the application is running.

If configuring an object of this class in a IoC container, use constructor injection.

This TargetSource is serializable if the target is at the time of serialization.

从以下版本开始:
3.0
作者:
Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 21:26
另请参阅:
  • 构造器详细资料

    • HotSwappableTargetSource

      public HotSwappableTargetSource(Object initialTarget)
      Create a new HotSwappableTargetSource with the given initial target object.
      参数:
      initialTarget - the initial target object
  • 方法详细资料