rodionmoiseev / c10n

A Java library, focused on making internationalisation more modular, easier to evolve and maintain, robust-to-change and IDE-friendly without excess of external tools.
Apache License 2.0
67 stars 10 forks source link

Auto-resolving of external resources #16

Open rodionmoiseev opened 11 years ago

rodionmoiseev commented 11 years ago

Forked from issue #2

Implement a @C10NResource annotation to support the following construts.

@C10NMessages
public interface MyMessages{
  //Defer to ResourceBundle-like locale resolution 
  // (e.g. look for text_ja_JP.txt for Jp locale)
  @C10NResource(extRes="file://absolute/path/text.txt")
  String textFileContents2();

  //Access internal (in-the-jar) resources
  @C10NResource(intRes="com/example/text.txt")
  String internalResourceContents();
}