|
[
Permlink
| « Hide
]
Craig Baker added a comment - 16/Oct/07 07:25 AM
This would be great, I wanted to use PropertyPlaceholderConfigurer to set my compass index directory.
This would be really nice. Is this a limitation of Spring since it's not translating the value before it's passed in? I guess it really can't because you have to process the actual XML (or it could translate the XML first by replacing all property values and then pass the resulting XML to be processed to the schema handlers).
Apparently, this problem has been around for a while:
This will actually work, but it's going to take a lot of refactoring. You'll have to actually build up your bean definitions and add them to the BeanDefinitionBuilder instead of instantiating the beans yourself. The property value will be translated for you by spring if you do it that way.
Is there a way to hand-code this stuff so that everything works just like with the namespace support? I need to get our project working again and we really want to use PropertyPlaceholderConfigurer. I'm trying to hand-code it, but I'm running into troubles. I have custom analyzers/filters defined in my spring configuration file. I can't use a Compass configuration file because it requires that we set up the connection (at least that's what the XSD document says) and we want to do that in our spring file so that the index directory is obtained via the PropertyPlaceholderConfigurer. Is there a way to just use plain ole Spring to configure everything we need?
|
|||||||||||||||||||||||||||||||||||||||