| Method from org.springframework.aop.target.EmptyTargetSource Detail: |
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof EmptyTargetSource)) {
return false;
}
EmptyTargetSource otherTs = (EmptyTargetSource) other;
return (ObjectUtils.nullSafeEquals(this.targetClass, otherTs.targetClass) && this.isStatic == otherTs.isStatic);
}
|
public static EmptyTargetSource forClass(Class targetClass) {
return forClass(targetClass, true);
}
Return an EmptyTargetSource for the given target Class. |
public static EmptyTargetSource forClass(Class targetClass,
boolean isStatic) {
return (targetClass == null && isStatic ? INSTANCE : new EmptyTargetSource(targetClass, isStatic));
}
Return an EmptyTargetSource for the given target Class. |
public Object getTarget() {
return null;
}
|
public Class getTargetClass() {
return this.targetClass;
}
Always returns the specified target Class, or null if none. |
public int hashCode() {
return EmptyTargetSource.class.hashCode() * 13 + ObjectUtils.nullSafeHashCode(this.targetClass);
}
|
public boolean isStatic() {
return this.isStatic;
}
|
public void releaseTarget(Object target) {
}
|
public String toString() {
return "EmptyTargetSource: " +
(this.targetClass != null ? "target class [" + this.targetClass.getName() + "]" : "no target class") +
", " + (this.isStatic ? "static" : "dynamic");
}
|