protected static ResourceBundle bankBundle = ResourceBundle.getBundle("messages.EN.properties");
ドット(.)拡張子のプロパティ名でプロパティを読み込むことはできますか?
protected static ResourceBundle bankBundle = ResourceBundle.getBundle("messages.EN.properties");
ドット(.)拡張子のプロパティ名でプロパティを読み込むことはできますか?
java の Property クラスを使用する必要があると思います。
(コメントから更新)
Properties prop = new Properties();
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream stream = loader.getResourceAsStream("/messages.EN.properties");
prop.load(stream);
確かに、Properties クラスを使用できます。
http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html
また、このコードのサンプルを参照することもできます:
Properties prop = new Properties();
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream stream = loader.getResourceAsStream("/messages.EN.properties");
prop.load(stream);