Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>May be if you can explain on how you need to do this, then you could get the correct answer. </p> <p>The Short answer to your question is no, especially in Intellij (I do not know enough about eclipse). Of course the slightly longer but still not very useful answer is to write a plugin. ( That will take a list of property files and read the key and values in a map and then does a regular expression replace of ResourceBundle.getValue("Key") with the value from Map (for the key). I will write this plugin myself, if you can convince me that, there are more people like you, who have this requirement.) </p> <p>The more elaborate answer is this.</p> <p>1_ First I will re-factor all the code that performs property file reading to a single class (or module called PropertyFileReader).</p> <p>2_ I will create a property file reader module, that iterates across all the keys in property file(s) and then stores those information in a map.</p> <p>4_ I can either create a static map objects with the populated values or create a constant class out of it. Then I will replace the logic in the property file reader module to use a get on the map or static class rather than the property file reading.</p> <p>5_ Once I am sure that the application performs ok.(By checking if all my Unit Testing passes), then I will remove my property files.</p> <p>Note: If you are using spring, then there is a easy way to split out all property key-value pairs from a list of property files. Let me know if you use spring. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload