|
Paul To do this without making the Synapse core (i.e. SynapseConfiguration) dependent on Spring classes, we could keep the reference to the ApplicationContext as just an Object? Maybe the approach should be to make the Spring configuration definitions "named" (as other elements within the "definitions" section), and keep these named "configuration"s as a Map of Objects.. just thinking out aloud. .maybe something like... SynapseConfiguration will keep a Map of named "configuration" Objects, and expose methods Object getNamedConfiguration(String configName) void addNamedConfiguration(String configName, Object config) This configuration returns an Object, and if/since we know these configurations are of ApplicationContext type, we could cast it and use them.. So it would also be possible to have "other" types of named configuration objects as shown below.. e.g. <synapse> <definitions> .... <spring name="spring1" configuration="file:/springconfig1.xml"/> .. extensibility .. </spring> <spring name="spring2" configuration="file:/springconfig2.xml"/> .... <someotherconfig name="someother" configuration="url"/> ... </definitions> </rules> ...... <springmediator ref="exampleBean1" configuration="spring1"/> .... <springmediator ref="exampleBean2" configuration="spring2"/> .... <someothermediator configuration="someother"/> .... </rules> <synapse> Do you think this would be good? asankha Paul Fremantle wrote: Asankha--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: Spring support enhancement... Asankha C. Perera
- Re: Spring support enhancement... Sanjiva Weerawarana
- Re: Spring support enhancement... Asankha C. Perera
- Re: Spring support enhancement... Sanjiva Weerawarana
- Re: Spring support enhancement... Asankha C. Perera
- Re: Spring support enhancement... Jaliya Ekanayake
- Re: Spring support enhancement... Asankha C. Perera
- Re: Spring support enhancement..... Jaliya Ekanayake
- Re: Spring support enhanceme... Asankha C. Perera
- Re: Spring support enhancement... Sanjiva Weerawarana
