open class HotSwappableTargetSource : TargetSource, Serializable
org.springframework.aop.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 Spring IoC container, use constructor injection.
This TargetSource is serializable if the target is at the time of serialization.
Author
Rod Johnson
Author
Juergen Hoeller
HotSwappableTargetSource(initialTarget: Any)
Create a new HotSwappableTargetSource with the given initial target object. |
open fun equals(other: Any?): Boolean
Two HotSwappableTargetSources are equal if the current target objects are equal. |
|
open fun getTarget(): Any |
|
open fun getTargetClass(): Class<*>
Return the type of the current target object. The returned type should usually be constant across all target objects. |
|
open fun hashCode(): Int |
|
fun isStatic(): Boolean |
|
open fun releaseTarget(target: Any): Unit |
|
open fun swap(newTarget: Any): Any
Swap the target, returning the old target object. |
|
open fun toString(): String |