public class RuntimeBeanReference extends Object implements BeanReference
BeanDefinition.getPropertyValues(), 
BeanFactory.getBean(String), 
BeanFactory.getBean(Class)| Constructor and Description | 
|---|
| RuntimeBeanReference(Class<?> beanType)Create a new RuntimeBeanReference to a bean of the given type. | 
| 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. | 
| RuntimeBeanReference(String beanName)Create a new RuntimeBeanReference to the given bean name. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| String | getBeanName()Return the requested bean name, or the fully-qualified type name
 in case of by-type resolution. | 
| Class<?> | getBeanType()Return the requested bean type if resolution by type is demanded. | 
| Object | getSource()Return the configuration source  Objectfor this metadata element
 (may benull). | 
| int | hashCode() | 
| boolean | isToParent()Return whether this is an explicit reference to a bean in the parent factory. | 
| void | setSource(Object source)Set the configuration source  Objectfor this metadata element. | 
| String | toString() | 
public RuntimeBeanReference(String beanName)
beanName - name of the target beanpublic RuntimeBeanReference(String beanName, boolean toParent)
beanName - name of the target beantoParent - whether this is an explicit reference to a bean in the
 parent factorypublic RuntimeBeanReference(Class<?> beanType)
beanType - type of the target beanpublic RuntimeBeanReference(Class<?> beanType, boolean toParent)
beanType - type of the target beantoParent - whether this is an explicit reference to a bean in the
 parent factorypublic String getBeanName()
getBeanName in interface BeanReferencegetBeanType()@Nullable public Class<?> getBeanType()
public boolean isToParent()
public void setSource(@Nullable
                      Object source)
Object for this metadata element.
 The exact type of the object will depend on the configuration mechanism used.
@Nullable public Object getSource()
BeanMetadataElementObject for this metadata element
 (may be null).getSource in interface BeanMetadataElement