tags:

views:

22

answers:

0

I am loading a Spring application context through the XmlBeanFactory(...) constructor, passing in a resource reference to the XML application context. It turns out - if I traverse the list of BeanDefinitions - I am getting null values for property values based on 'classpath:...' references. Not quite what I expect.

So, if I am trying to inspect the type of BeanDefinition of the value of this property value:

<property value="path" value="classpath:...."/>

And I'm getting nothing at all.

So, my assumption is that constructing the XmlBeanFactory as outlined above, does not automatically construct all metadata I need. As a wild guess, perhaps one of the things that is going wrong is that property editors like the one handling "classpath:" references haven't run yet. Any clues?