src.site.apt.index.apt Maven / Gradle / Ivy
------
Introduction
------
Max Antoni
------
24.03.2007
------
~~ Copyright (c) 2006-2007 Maximilian Antoni. All rights reserved.
~~ This software is licensed as described in the file LICENSE.txt, which you
~~ should have received as part of this distribution. The terms are also
~~ available at http://www.maxantoni.de/projects/eva-properties/license.txt.
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/guides/mini/guide-apt-format.html
Wires for your Java application
EvaProperties is a simple but powerful settings framework.
Feature list:
* Ant or Maven style {{{references.html}references}}
* Nested {{{maps.html}maps}} and {{{lists.html}lists}}
* Instantiate your {{{factory.html}classes}}
* {{{proxy.html}Lazy loading}} of other property files
* {{{switch.html}Fault-tolerant}} referencing of files
* Create {{{urls.html}files, classpath references or URLs}}
* Property {{{inheritance.html}inheritance}}
* Java {{{logging.html}logging}} support
Up and running in a minute
[[1]] Put the {{{download.html}EvaProperties}} JAR in your build path
(Maven users {{{usage.html}click here}}).
[[2]] Create a file named <<>>:
+----------------------------------------------------+
hello: "Hello World"
+----------------------------------------------------+
and package it with your class files.
[[3]] Create a Java class:
+----------------------------------------------------+
import java.util.Map;
import com.eva.properties.MapProperties;
public class HelloWorld {
public static void main(String[] args) {
Map properties = new MapProperties("classpath://properties.eva");
System.out.println(properties.get("hello"));
}
}
+----------------------------------------------------+
[] ~~ end of list
If you run this program, you should see
+----------------------------------------------------+
Hello World
+----------------------------------------------------+
© 2015 - 2025 Weber Informatics LLC | Privacy Policy