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.
Determine whether a refresh is required.
Invoked for each refresh check, after the refresh check delay has elapsed.
The default implementation always returns true, triggering
a refresh every time the delay has elapsed. To be overridden by subclasses
with an appropriate check of the underlying target resource.
whether a refresh is required
setRefreshCheckDelay
public void setRefreshCheckDelay(long refreshCheckDelay)(Code)
Set the delay between refresh checks, in milliseconds.
Default is -1, indicating no refresh checks at all.