Hello. I have an interesting problem that I was hoping somebody could help me with:
Situation:
I've built a custom configuration API on top of Apache Commons Configuration that allows me to detect which environment the application is deployed in. To keep this short, my API reads in an 'environment' value from the JNDI tree and then uses this value to load in configuration files specific to that environment.
The API itself uses the Spring IoC container and has been unit tested within and without successfully.
My goal is to be able to use my environment aware configuration API as an extension to the PropertyPlaceholderConfigurer so that I can configure properties within my spring xml config.
Problem:
I've created my own custom 'EnvironmentAwarePropertyPlaceholderConfigurer' and inside this class I'm autowiring my configuration object. The issue is that it's not autowiring successfully; it's actually null.
Is there a reason why beans wouldn't be autowired successfully to an instance of the PropertyPlaceholderConfigurer?
Is the IoC container not intialized at this point in the life-cycle?


Reply With Quote
