org.springframework.beans.factory.config
Class RuntimeBeanReference

java.lang.Object
  extended byorg.springframework.beans.factory.config.RuntimeBeanReference

public class RuntimeBeanReference
extends Object

Immutable placeholder class used for the value of a PropertyValue object when it's a reference to another bean in this factory to be resolved at runtime.

Author:
Rod Johnson, Juergen Hoeller

Constructor Summary
RuntimeBeanReference(String beanName)
          Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.
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.
 
Method Summary
 String getBeanName()
          Return the target bean name.
 boolean isToParent()
          Return whether this is an explicit reference to a bean in the parent factory.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeBeanReference

public RuntimeBeanReference(String beanName)
Create a new RuntimeBeanReference to the given bean name, without explicitly marking it as reference to a bean in the parent factory.

Parameters:
beanName - name of the target bean

RuntimeBeanReference

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.

Parameters:
beanName - name of the target bean
toParent - whether this is an explicit reference to a bean in the parent factory
Method Detail

getBeanName

public String getBeanName()
Return the target bean name.


isToParent

public boolean isToParent()
Return whether this is an explicit reference to a bean in the parent factory.


toString

public String toString()


Copyright (C) 2003-2004 The Spring Framework Project.