|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.aop.target.SingletonTargetSource
Implementation of the TargetSource interface that holds a local object.
This is the default implementation of TargetSource used by the AOP framework.
There is no need to create objects of this class in application code.
This class is Serializable. However, the serializability of a SingletonTargetSource
will depend on whether the target is Serializable.
| Constructor Summary | |
SingletonTargetSource(java.lang.Object target)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal. |
java.lang.Object |
getTarget()
Return a target instance. |
java.lang.Class |
getTargetClass()
Return the type of targets returned by this TargetSource. |
boolean |
isStatic()
Will all calls to getTarget() return the same object? |
void |
releaseTarget(java.lang.Object o)
Release the given target object obtained from the getTarget() method. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SingletonTargetSource(java.lang.Object target)
| Method Detail |
public java.lang.Class getTargetClass()
TargetSource
getTargetClass in interface TargetSourcepublic java.lang.Object getTarget()
TargetSource
getTarget in interface TargetSourcepublic void releaseTarget(java.lang.Object o)
TargetSource
releaseTarget in interface TargetSourceo - object obtained from a call to getTarget()TargetSource.getTarget()public boolean isStatic()
TargetSource
isStatic in interface TargetSourcepublic boolean equals(java.lang.Object other)
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||