On 22-11-2011 17:45, Gambo wrote:
Hi there,

I want to get the complete Map of the key value entries within a
properties file.

I know there is the possible to inject with @Named but you always need
to specifiy the complete key.

It would be good if I could go through all properties and see which
keys are included.

Example:
model.person.firstName
model.person.lastName

Now it would be good if I can access this via
properties.get("model.person") and the result would be a Map with 2
items in it.
This is already feasible in Java, but you must copy the Properties map (a hashmap actually) into a TreeMap which, since Java 6, implements NavigableMap, allowing you to "extract" submaps based on a range of keys, that would fit directly your issue.

Jean-François


How can I achive this?

Thanks


--
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to