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 -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -