|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.aop.target.EmptyTargetSource
public class 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()
TargetSourcenull, although certain usages of a TargetSource
might just work with a predetermined target class.
getTargetClass in interface TargetSourcepublic boolean isStatic()
TargetSourcegetTarget() 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 TargetSourceTargetSource.getTarget()public Object getTarget()
TargetSource
getTarget in interface TargetSourcepublic void releaseTarget(Object target)
TargetSourcegetTarget() method.
releaseTarget in interface TargetSourcetarget - object obtained from a call to getTarget()TargetSource.getTarget()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||