Class EmptyTargetSource
java.lang.Object
org.springframework.aop.target.EmptyTargetSource
- All Implemented Interfaces:
- Serializable,- TargetClassAware,- TargetSource
Canonical 
TargetSource when there is no target
 (or just the target class known), and behavior is supplied
 by interfaces and advisors only.- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EmptyTargetSourceThe canonical (Singleton) instance of thisEmptyTargetSource.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic EmptyTargetSourceReturn an EmptyTargetSource for the given target Class.static EmptyTargetSourceReturn an EmptyTargetSource for the given target Class.Always returnsnull.Always returns the specified target Class, ornullif none.inthashCode()booleanisStatic()Always returnstrue.toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.TargetSourcereleaseTarget
- 
Field Details- 
INSTANCEThe canonical (Singleton) instance of thisEmptyTargetSource.
 
- 
- 
Method Details- 
forClassReturn an EmptyTargetSource for the given target Class.- Parameters:
- targetClass- the target Class (may be- null)
- See Also:
 
- 
forClassReturn an EmptyTargetSource for the given target Class.- Parameters:
- targetClass- the target Class (may be- null)
- isStatic- whether the TargetSource should be marked as static
- See Also:
 
- 
getTargetClassAlways returns the specified target Class, ornullif none.- Specified by:
- getTargetClassin interface- TargetClassAware
- Specified by:
- getTargetClassin interface- TargetSource
- Returns:
- the type of targets returned by this TargetSource
 
- 
isStaticpublic boolean isStatic()Always returnstrue.- Specified by:
- isStaticin interface- TargetSource
- Returns:
- trueif the target is immutable
- See Also:
 
- 
getTargetAlways returnsnull.- Specified by:
- getTargetin interface- TargetSource
- Returns:
- the target object which contains the joinpoint,
 or nullif there is no actual target instance
 
- 
equals
- 
hashCode
- 
toString
 
-