| java.lang.Object | |
| ↳ | org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Abstract 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.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| logger | Logger available to subclasses | ||||||||||
| targetObject | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the last time an actual refresh happened (as timestamp).
| |||||||||||
Return the number of actual refreshes since startup.
| |||||||||||
Return a target instance.
| |||||||||||
Return the type of targets returned by this
TargetSource. | |||||||||||
Not static.
| |||||||||||
Refresh the underlying target object.
| |||||||||||
No need to release target.
| |||||||||||
Set the delay between refresh checks, in milliseconds.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Obtain a fresh target object.
| |||||||||||
Determine whether a refresh is required.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.TargetClassAware
| |||||||||||
From interface
org.springframework.aop.TargetSource
| |||||||||||
From interface
org.springframework.aop.target.dynamic.Refreshable
| |||||||||||
Logger available to subclasses
Return the last time an actual refresh happened (as timestamp).
Return the number of actual refreshes since startup.
Return a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation.
Return the type of targets returned by this TargetSource.
Can return null, although certain usages of a
TargetSource might just work with a predetermined
target class.
TargetSource
Not static.
true if the target is immutableRefresh the underlying target object.
No need to release target.
| object | object obtained from a call to getTarget() |
|---|
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
requiresRefresh() returns true.
Obtain a fresh target object.
Only invoked if a refresh check has found that a refresh is required
(that is, requiresRefresh() has returned true).
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.