abstract class AbstractRefreshableTargetSource : TargetSource, Refreshable
Abstract org.springframework.aop.TargetSource implementation that wraps a refreshable target object. Subclasses can determine whether a refresh is required, and need to provide fresh target objects.
Implements the Refreshable interface in order to allow for explicit control over the refresh status.
Author
Rod Johnson
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
See Also
#requiresRefresh()#freshTarget()
AbstractRefreshableTargetSource()
Abstract org.springframework.aop.TargetSource implementation that wraps a refreshable target object. Subclasses can determine whether a refresh is required, and need to provide fresh target objects. Implements the Refreshable interface in order to allow for explicit control over the refresh status. |
open fun getLastRefreshTime(): Long |
|
open fun getRefreshCount(): Long |
|
fun getTarget(): Any |
|
open fun getTargetClass(): Class<*> |
|
open fun isStatic(): Boolean
Not static. |
|
fun refresh(): Unit |
|
open fun releaseTarget(object: Any): Unit
No need to release target. |
|
open fun setRefreshCheckDelay(refreshCheckDelay: Long): Unit
Set the delay between refresh checks, in milliseconds. Default is -1, indicating no refresh checks at all. Note that an actual refresh will only happen when |
open class BeanFactoryRefreshableTargetSource : AbstractRefreshableTargetSource
Refreshable TargetSource that fetches fresh target beans from a BeanFactory. Can be subclassed to override |