BeanDefinition#getPropertyValues(), org.springframework.beans.factory.BeanFactory#getBean(String) , org.springframework.beans.factory.BeanFactory#getBean(Class)
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Class | |
| private Object | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | RuntimeBeanReference(String
name of the target bean beanName)Create a new RuntimeBeanReference to the given bean name. |
| public | RuntimeBeanReference(String
name of the target bean beanName, boolean whether this is an explicit reference to a bean in the
parent factory toParent)Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory. |
| public | RuntimeBeanReference(Class<?>
type of the target bean beanType)Create a new RuntimeBeanReference to a bean of the given type. |
| public | RuntimeBeanReference(Class<?>
type of the target bean beanType, boolean whether this is an explicit reference to a bean in the
parent factory toParent)Create a new RuntimeBeanReference to a bean of the given type, with the option to mark it as reference to a bean in the parent factory. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public String | getBeanName()
Implements org. |
| public Class | |
| public Object | getSource()
Overrides default org. Object for this metadata element
(may be null).
|
| public int | |
| public boolean | |
| public void | |
| public String |
| beanName | back to summary |
|---|---|
| private final String beanName | |
| beanType | back to summary |
|---|---|
| private final Class<?> beanType
| |
| source | back to summary |
|---|---|
| private Object source
| |
| toParent | back to summary |
|---|---|
| private final boolean toParent | |
| RuntimeBeanReference | back to summary |
|---|---|
| public RuntimeBeanReference(String beanName) Create a new RuntimeBeanReference to the given bean name.
| |
| RuntimeBeanReference | back to summary |
|---|---|
| public RuntimeBeanReference(String beanName, boolean toParent) Create a new RuntimeBeanReference to the given bean name, with the option to mark it as reference to a bean in the parent factory.
| |
| RuntimeBeanReference | back to summary |
|---|---|
| public RuntimeBeanReference(Class<?> beanType) Create a new RuntimeBeanReference to a bean of the given type.
| |
| RuntimeBeanReference | back to summary |
|---|---|
| public RuntimeBeanReference(Class<?> beanType, boolean toParent) Create a new RuntimeBeanReference to a bean of the given type, with the option to mark it as reference to a bean in the parent factory.
| |
| 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. | |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Implements org. Return the requested bean name, or the fully-qualified type name in case of by-type resolution.
| |
| getBeanType | back to summary |
|---|---|
| public Class Return the requested bean type if resolution by type is demanded.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Overrides default org. Doc from org. Return the configuration source | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isToParent | back to summary |
|---|---|
| public boolean isToParent() Return whether this is an explicit reference to a bean in the parent factory. | |
| setSource | back to summary |
|---|---|
| public void setSource(Object source) Set the configuration source The exact type of the object will depend on the configuration mechanism used. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |