Intialize ServletFilter w/ PropertyPlaceholderConfigurer
Hi!
I have two filters in my webapp (based on OncePerRequestFilter). Both of these filters use some <init-param>s, that I would like to move to a 'global' propertyfile. For the 'normal' beans (defined in my application context file) the PropertyPlaceholder* works fine - the tokens get replaced with the values from the propertyfile. For the filters, Spring seems to skip the post-processing - possibly because the filters are only mentioned in the web.xml, and not in the application context. The filters do get initialized with their init-parameters, (I'm using the ContextLoaderListener), but the post-processing does not take place (i.e., their parameters are all set to ${my.property.A}, {$my.property.B}
So what my question boils down to is: how do I tell Spring to do the bean-factory postprocessing on these filters? Or am I going about this in the wrong way?
Thanks for any suggestions!
Regards,
Edwin