程序包 infra.aop.target
类 EmptyTargetSource
java.lang.Object
infra.aop.target.EmptyTargetSource
- 所有已实现的接口:
TargetClassAware,TargetSource,Serializable
Canonical
TargetSource when there is no target
(or just the target class known), and behavior is supplied
by interfaces and advisors only.- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 20:25
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final EmptyTargetSourceThe canonical (Singleton) instance of thisEmptyTargetSource.private final booleanprivate static final longprivate final Class<?> -
构造器概要
构造器限定符构造器说明privateEmptyTargetSource(Class<?> targetClass, boolean isStatic) Create a new instance of theEmptyTargetSourceclass. -
方法概要
修饰符和类型方法说明booleanstatic 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.private ObjectReturns the canonical instance on deserialization in case of no target class, thus protecting the Singleton pattern.toString()从接口继承的方法 infra.aop.TargetSource
releaseTarget
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
targetClass
-
isStatic
private final boolean isStatic -
INSTANCE
The canonical (Singleton) instance of thisEmptyTargetSource.
-
-
构造器详细资料
-
EmptyTargetSource
Create a new instance of theEmptyTargetSourceclass.This constructor is
privateto enforce the Singleton pattern / factory method pattern.- 参数:
targetClass- the target class to expose (may benull)isStatic- whether the TargetSource is marked as static
-
-
方法详细资料
-
getTargetClass
Always returns the specified target Class, ornullif none.- 指定者:
getTargetClass在接口中TargetClassAware- 指定者:
getTargetClass在接口中TargetSource- 返回:
- the type of targets returned by this
TargetSource
-
isStatic
public boolean isStatic()Always returnstrue.- 指定者:
isStatic在接口中TargetSource- 返回:
trueif the target is immutable- 另请参阅:
-
getTarget
Always returnsnull.- 指定者:
getTarget在接口中TargetSource- 返回:
- the target object which contains the join-point,
or
nullif there is no actual target instance
-
readResolve
Returns the canonical instance on deserialization in case of no target class, thus protecting the Singleton pattern. -
equals
-
hashCode
public int hashCode() -
toString
-
forClass
Return an EmptyTargetSource for the given target Class.- 参数:
targetClass- the target Class (may benull)- 另请参阅:
-
forClass
Return an EmptyTargetSource for the given target Class.- 参数:
targetClass- the target Class (may benull)isStatic- whether the TargetSource should be marked as static- 另请参阅:
-