|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.target.EmptyTargetSource
Canonical TargetSource when there's no target, and behavior is supplied by interfaces and advisors.
Field Summary | |
static EmptyTargetSource |
INSTANCE
|
Method Summary | |
Object |
getTarget()
Return a target instance. |
Class |
getTargetClass()
Return the type of targets returned by this TargetSource. |
boolean |
isStatic()
Will all calls to getTarget() return the same object?
|
void |
releaseTarget(Object target)
Release the given target object obtained from the getTarget() method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final EmptyTargetSource INSTANCE
Method Detail |
public Class getTargetClass()
TargetSource
getTargetClass
in interface TargetSource
public boolean isStatic()
TargetSource
getTarget()
return the same object?
In that case, there will be no need to invoke releaseTarget
,
and the AOP framework can cache the return value of getTarget()
.
isStatic
in interface TargetSource
TargetSource.getTarget()
public Object getTarget()
TargetSource
getTarget
in interface TargetSource
public void releaseTarget(Object target)
TargetSource
getTarget()
method.
releaseTarget
in interface TargetSource
target
- object obtained from a call to getTarget()
TargetSource.getTarget()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |