Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matyb committed Nov 9, 2011
1 parent 464fd89 commit 299585a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ for(Entry<String, String> entry : annotatedResourceBundle.getAttributes("warning
would output:
location=warning_dialog
resource_type=png-image

There is also the ability to reference properties in the annotations:
#@ host:${host_name} user:${user_name} password:${pass}
connection=my_connection://
host_name=www.github.com
user_name=matyb
password=pass123

AnnotatedResourceBundle annotatedResourceBundle = new AnnotatedResourceBundle(
"images.properties", getClass().getClassLoader());
for(Entry<String, String> entry : annotatedResourceBundle.getAttributes("connection").entrySet()){
System.out.println(entry);
}

would output:
host_name=www.github.com
user_name=matyb
password=pass123

0 comments on commit 299585a

Please sign in to comment.