Feature #4

Consider allowing default values on StagedPropertyPlaceHolderConfigurer

Added by Kaare Nilsen 219 days ago. Updated 44 days ago.

Status :New Start :04/13/2008
Priority :Normal Due date :
Assigned to :Kaare Nilsen % Done :

0%

Category :Code Spent time : -
Target version :1.2 Estimated time :12.00 hours

Description

Perhaps a default value on the StagedPropertyPlaceHolderConfigurer? could be a cool thing. Using e.g. the following syntax . "${placeholder}def:{default-value}"

example usage:

<bean id="myBean" class="no..MyClass">
  <property name="myProperty" value="${myKey}def:{This is the default value}"/>
</bean>

Add

Related issues

History

04/13/2008 11:07 PM - Kaare Nilsen

  • Target version set to 1.0-beta-1

04/13/2008 11:08 PM - Kaare Nilsen

Yes, that seems like a good idea. When using the self-configuring beans approach the default values can readily be added. Something similar is needed for the placeHolder approach.

This would also remove the need for specifying properties without a stage in property files.

It should be made clear which stage these default properties belong to. E.g. when no stage is specified all default properties belong to the Production stage.
(Sherriff)

04/13/2008 11:08 PM - Kaare Nilsen

The default value does not really belong to a stage. It will be used in any stages as long as there is no key defined in the property files

04/13/2008 11:11 PM - Kaare Nilsen

  • Category set to Code

04/29/2008 12:11 AM - Kaare Nilsen

  • Estimated time set to 12.0

06/22/2008 01:54 AM - Kaare Nilsen

  • Target version changed from 1.0-beta-1 to 2

09/16/2008 02:46 PM - Kaare Nilsen

  • Target version changed from 2 to 1.1

10/06/2008 11:01 AM - Kaare Nilsen

  • Target version changed from 1.1 to 1.2

Also available in: Atom PDF