Hi

No you don't really need to override the first method you've mentioned
below, as just overriding the second one is enough and does the job for you.
See the link to the test I've already provided you in this thread.

That said, in case you want to override the way how the system properties
should affect resolving the Spring placeholders (the default is
PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_FALLBACK) then IMHO you
should better do a proper wiring/configuration instead of coding the stuff
by yourself, that's just set the mode you want to have without any coding,
see the Javadoc for how to do it:

http://tinyurl.com/osd4lzc

http://tinyurl.com/q7pvfpn

I' ve extended the test to cover/show this as well, following the diff for
it:

https://github.com/apache/camel/commit/bcc65808bc7373832410ee53bb98db258add3259

Babak


salemi wrote
> Thank you Babak. It had to overwrite the following methods in order for
> Spring and Camel to work.
> 
> 
> public class MyBridgePropertyPlaceholderConfigurer extends
> BridgePropertyPlaceholderConfigurer{
> 
>       @Override       
>       protected String resolvePlaceholder(String placeholder, Properties 
> props,
> int systemPropertiesMode){......}
>       @Override
>       public Properties resolveProperties(CamelContext context, boolean
> ignoreMissingLocation, String... uri){........}
> 
> }
> 
> Ali





--
View this message in context: 
http://camel.465427.n5.nabble.com/dynamicly-change-the-url-of-the-from-element-after-the-camelcontext-is-started-tp5740599p5741102.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to