Hi,

I have defined a strategy configuration with 3 config files

core-foo-strategy.xml
core-bar-strategy.xml
core-ter-strategy.xml

I would like something like this in my configuration file

Code:
<import resource="META-INF/core-${myProject.ENV}-strategy.xml
Users can set a system property to switch the strategy when the container starts (-DmyProject.ENV=foo).

My problem is the defaulting, I would like to choose a default strategy if the system property is not set. How can I set this default value. Any bean manipulating the system needs of course to be initialized and I can't set a "dependency" on a bean in a import statement AFAIK.

Any idea?