|
The Spring Framework | |||||||||
| 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 TargetSource.getTarget() return the same object? |
void |
releaseTarget(Object target)
Release the given target object obtained from the TargetSource.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()
TargetSourceTargetSource.
Can return null, although certain usages of a
TargetSource might just work with a predetermined
target class.
getTargetClass in interface TargetSourceTargetSourcepublic boolean isStatic()
TargetSourceTargetSource.getTarget() return the same object?
In that case, there will be no need to invoke
TargetSource.releaseTarget(Object), and the AOP framework can cache
the return value of TargetSource.getTarget().
isStatic in interface TargetSourcetrue if the target is immutableTargetSource.getTarget()public Object getTarget()
TargetSource
getTarget in interface TargetSourcepublic void releaseTarget(Object target)
TargetSourceTargetSource.getTarget() method.
releaseTarget in interface TargetSourcetarget - object obtained from a call to TargetSource.getTarget()public String toString()
toString in class Object
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||