|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.target.EmptyTargetSource
public class EmptyTargetSource
Canonical TargetSource
when there is no target
(or just the target class known), and behavior is supplied
by interfaces and advisors only.
Field Summary | |
---|---|
static EmptyTargetSource |
INSTANCE
The canonical (Singleton) instance of this EmptyTargetSource . |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
static EmptyTargetSource |
forClass(Class targetClass)
Return an EmptyTargetSource for the given target Class. |
static EmptyTargetSource |
forClass(Class targetClass,
boolean isStatic)
Return an EmptyTargetSource for the given target Class. |
Object |
getTarget()
Always returns null . |
Class |
getTargetClass()
Always returns the specified target Class, or null if none. |
int |
hashCode()
|
boolean |
isStatic()
Always returns true . |
void |
releaseTarget(Object target)
Nothing to release. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EmptyTargetSource INSTANCE
EmptyTargetSource
.
Method Detail |
---|
public static EmptyTargetSource forClass(Class targetClass)
targetClass
- the target Class (may be null
)getTargetClass()
public static EmptyTargetSource forClass(Class targetClass, boolean isStatic)
targetClass
- the target Class (may be null
)isStatic
- whether the TargetSource should be marked as staticgetTargetClass()
public Class getTargetClass()
null
if none.
getTargetClass
in interface TargetClassAware
getTargetClass
in interface TargetSource
TargetSource
public boolean isStatic()
true
.
isStatic
in interface TargetSource
true
if the target is immutableTargetSource.getTarget()
public Object getTarget()
null
.
getTarget
in interface TargetSource
public void releaseTarget(Object target)
releaseTarget
in interface TargetSource
target
- object obtained from a call to TargetSource.getTarget()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
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 |