You should be able to use context.resolvePropertyPlaceholders to get this in java DSL
-Shreyas ---------------------------------------- > Date: Tue, 10 Mar 2015 18:28:46 -0700 > From: derek.abd...@gmail.com > To: dev@camel.apache.org > Subject: Pulling property placeholders out of camel route definitions > > Hello. Is it possible to pull out property placeholder names out of route > definitions in Java/XML DSL? For example: > > <routes xmlns="http://camel.apache.org/schema/spring"> > <route> > <from uri="timer://foo?fixedRate=true&delay=0&period=5000" /> > <transform><simple>{{message}}</simple></transform> > <to uri="log:foo?level=INFO"/> > </route> > </routes> > > Following this: > http://camel.apache.org/loading-routes-from-xml-files.html > > I'd want to pull out "message" as a property to-be-supplied programmatically > so I can, for example, dynamically generate an input form based on those > property names and present this to the user to fill in. In my situation I > end up having N instances of this route instantiated. I'd prefer the > properties come from the template for DRY principles. > > I looked at the PropertiesComponent as well as its PropertiesParser and > PropertiesResolver but from what I see this doesn't look possible. > > Thanks! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Pulling-property-placeholders-out-of-camel-route-definitions-tp5763960.html > Sent from the Camel Development mailing list archive at Nabble.com.