forked from suspend0/java-properties
-
Notifications
You must be signed in to change notification settings - Fork 1
Type safe wrappers for java.util.Properties and java.util.ResourceBundle
License
aogail/java-properties
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Type-safe wrappers for java.util.Properties and java.util.ResourceBundle. // // Very early stages, this readme might not be up-to-date // == myapp.properties == host=www.google.com port=80 public abstract class MyConfig { public abstract String getHost(); public abstract int getPort(); public URI getUri() { return URI.create("http://" + getHost() + ":" + getPort()); } } Properties props = new Properties(); props.load(myapp.properties); MyConfig config = JavaProperties.newInstance(props,MyConfig.class); config.getHost(); // www.google.com
About
Type safe wrappers for java.util.Properties and java.util.ResourceBundle
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%