TargetSource when there is no target
(or just the target class known), and behavior is supplied
by interfaces and advisors only.
| Modifier and Type | Field and Description |
|---|---|
| public static final EmptyTargetSource | INSTANCE
The canonical (Singleton) instance of this |
| private final boolean | |
| private static final long | serialVersionUID
use serialVersionUID from Spring 1.2 for interoperability. |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private | EmptyTargetSource(Class<?>
the target class to expose (may be targetClass, boolean null)whether the TargetSource is marked as static isStatic)Create a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static EmptyTargetSource | |
| public static EmptyTargetSource | |
| public Object | |
| public Class | getTargetClass()
Implements org. Always returns the specified target Class, or |
| public int | |
| public boolean | |
| private Object | readResolve()
Returns the canonical instance on deserialization in case of no target class, thus protecting the Singleton pattern. |
| public String |
| INSTANCE | back to summary |
|---|---|
| public static final EmptyTargetSource INSTANCE The canonical (Singleton) instance of this | |
| isStatic | back to summary |
|---|---|
| private final boolean isStatic | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID use serialVersionUID from Spring 1.2 for interoperability. | |
| targetClass | back to summary |
|---|---|
| private final Class<?> targetClass
| |
| EmptyTargetSource | back to summary |
|---|---|
| private EmptyTargetSource(Class<?> targetClass, boolean isStatic) Create a new instance of the This constructor is
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forClass | back to summary |
|---|---|
| public static EmptyTargetSource forClass(Class<?> targetClass) Return an EmptyTargetSource for the given target Class.
| |
| forClass | back to summary |
|---|---|
| public static EmptyTargetSource forClass(Class<?> targetClass, boolean isStatic) Return an EmptyTargetSource for the given target Class.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Implements org. Always returns
| |
| getTargetClass | back to summary |
|---|---|
| public Class Implements org. Always returns the specified target Class, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() Overrides default org. Always returns
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Returns the canonical instance on deserialization in case of no target class, thus protecting the Singleton pattern. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |