In Java Properties, can you put property substitutions in other property key names? -


in java properties, can use property substitutions in property keys of other property key names?

something this:

between=between and=and greater.than=greaterthan ${between}1${and}4units=1-4 ${between}5${and}8units=5-8 ${between}9${and}20units=9-20 ${between}21${and}50units=21-50 ${between}51${and}99units=51-99 ${greater.than}100units=100-999 

commons configuration supports property substitution (or properties referencing property) through values. there no current support substituting key names in properties. however, least can extend implementation creating custom property reader achieve you're trying do.

read on ff. references:


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -