All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.site.apt.index.apt Maven / Gradle / Ivy

Go to download

Advanced properties with object factories, references and inheritance.

There is a newer version: 0.3
Show newest version
 ------
 Introduction
 ------
 Max Antoni
 ------
 02.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

 eva-properties provides an easy to learn and convenient way to wire up your
 Java application.\
 Property files provide:
   
   * {{{documentation.html#Generics}Generics}}: Generic Java types
   
   * {{{documentation.html#Reference}References}}: Ant or Maven style references
   
   * {{{documentation.html#Maps}Maps}}: <<>>
   
   * {{{documentation.html#Lists}Lists}}: <<>>
   
   * {{{documentation.html#Factory}Factory}}: Creating objects of
   		arbitrary type
   
   * {{{documentation.html#Proxy}Proxy}}: Lazy loading of external property
   		files

   * {{{documentation.html#Switch}Switch}}: Try and error different external
   		files

   * {{{documentation.html#URLs}URLs}}: Create any kind of URL
   
   * {{{documentation.html#Inheritance}Inheritance}}: Inherit and override
   		properties
   
   * {{{documentation.html#Joker}Joker}}: Default values
   
* Hello World

 You should be up and running in a minute:
 
 [[1]] Put the {{{download.html}eva-properties}} JAR in your build path
 		(Maven users {{{usage.html}click here}})
 
 [[2]] Create a file named <<>> and package it with your class
 		files:
 
+----------------------------------------------------+
hello: "Hello World"
+----------------------------------------------------+

 [[3]] Everything you need is provided by
 	<<>>:
 
+----------------------------------------------------+
import java.io.IOException;
import com.eva.properties.PropertiesFactory;

public class HelloWorld {

    public static void main(String[] args) throws IOException {
        java.util.Map properties = PropertiesFactory.createMap(
                "classpath://properties.eva");
        System.out.println(properties.get("hello"));
    }
}
+----------------------------------------------------+

 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy