org.springframework.aop.TargetSource interface
that holds a given object. This is the default implementation of the TargetSource
interface, as used by the Spring AOP framework. There is usually no need to
create objects of this class in application code.
This class is serializable. However, the actual serializability of a SingletonTargetSource will depend on whether the target is serializable.
org.springframework.aop.framework.AdvisedSupport#setTarget(Object)
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
use serialVersionUID from Spring 1.2 for interoperability. |
| private final Object | target
Target cached and invoked using reflection. |
| Access | Constructor and Description |
|---|---|
| public | SingletonTargetSource(Object
the target object target)Create a new SingletonTargetSource for the given target. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal. |
| public Object | |
| public Class | getTargetClass()
Implements org. Return the type of targets returned by this |
| public int | hashCode()
Overrides java. SingletonTargetSource uses the hash code of the target object. |
| public boolean | isStatic()
Overrides default org. Will all calls to |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID use serialVersionUID from Spring 1.2 for interoperability. | |
| target | back to summary |
|---|---|
| private final Object target Target cached and invoked using reflection.
| |
| SingletonTargetSource | back to summary |
|---|---|
| public SingletonTargetSource(Object target) Create a new SingletonTargetSource for the given target.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Implements org. Doc from org. Return a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation. | |
| getTargetClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the type of targets returned by this Can return
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. SingletonTargetSource uses the hash code of the target object.
| |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() Overrides default org. Doc from org. Will all calls to In that case, there will be no need to invoke The default implementation returns
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |