Hi,
I have a custom namespace I'm parsing for a Spring project, and I'm having trouble with RuntimeBeanReferences. I have a class MyClass that takes a List. In my beandef file, I have a bean defined of type MyObject named "MyObj".
In my custom namespace parser, I have code that looks like this:
RootBeanDefinition myBean = new RootBeanDefinition(MyClass.class);
ConstructorArgumentValues cav = new ConstructorArgumentValues();
List list = new LinkedList();
list.add(new RuntimeBeanReference("MyObj"));
cav.addIndexedArgumentValue(0, list);
However, when I lookup the bean through spring, I get an exception saying it can't convert RuntimeBeanReference to MyObject. Do I need to do something specific to force the reference to be resolved?
thanks,
Jeff