Forum Home » Fuse Distributions » Fuse ESB

Thread: Howto inverse the boolean value of a configuration file property ?

 

Permlink Replies: 1 - Last Post: Jul 31, 2012 2:07 PM Last Post By: michal.warecki
vmahe

Posts: 24
Registered: 04/27/12
Howto inverse the boolean value of a configuration file property ?
Posted: Jul 24, 2012 1:14 PM
  Click to reply to this thread Reply
Hello everyone,

I have a bundle with an associated .cfg file containing a boolean property : enable.authentication=true

Is it possible to use the inverse value of this property in order to configure a given property of a bean ?

Something like :
<property name="ignoreActions" value="not(${enable.authentication})" />

This would prevent me from having 2 properties instead of one in my config file.

???

Thanks

Regards

Vincent
michal.warecki

Posts: 49
Registered: 01/23/11
Re: Howto inverse the boolean value of a configuration file property ?
Posted: Jul 31, 2012 2:07 PM   in response to: vmahe in response to: vmahe
  Click to reply to this thread Reply
Do you mean in Spring beans configuration? With Spring Expression Language there is possiblity to do so : http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/expressions.html