Package org.springframework.aop.target
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.Class<?>Always returns the specified target Class, ornullif none.inthashCode()booleanisStatic()Always returnstrue.voidreleaseTarget(Object target) Nothing to release.toString()
- 
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
 
- 
releaseTargetNothing to release.- Specified by:
- releaseTargetin interface- TargetSource
- Parameters:
- target- object obtained from a call to- TargetSource.getTarget()
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-