org.milyn.javabean.gen
Class ConfigGenerator
java.lang.Object
org.milyn.javabean.gen.ConfigGenerator
public class ConfigGenerator
- extends Object
Java binding configuration template generator.
Usage
From the commandline:
$JAVA_HOME/bin/java -classpath <classpath> org.milyn.javabean.gen.ConfigGenerator -c <rootBeanClass> -o <outputFilePath> [-p <propertiesFilePath>]
- The "-c" commandline arg specifies the root class of the model whose binding config is to be generated.
- The "-o" commandline arg specifies the path and filename for the generated config output.
- The "-p" commandline arg specifies the path and filename optional binding configuration file that specifies aditional binding parameters.
The optional "-p" properties file parameter allows specification of additional config parameters:
- packages.included: Semi-colon separated list of packages. Any fields in the class matching these packages will be included in the binding configuration generated.
- packages.excluded: Semi-colon separated list of packages. Any fields in the class matching these packages will be excluded from the binding configuration generated.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_BEAN_CLASS
public static final String ROOT_BEAN_CLASS
- See Also:
- Constant Field Values
PACKAGES_INCLUDED
public static final String PACKAGES_INCLUDED
- See Also:
- Constant Field Values
PACKAGES_EXCLUDED
public static final String PACKAGES_EXCLUDED
- See Also:
- Constant Field Values
ConfigGenerator
public ConfigGenerator(Properties bindingProperties,
Writer outputWriter)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
main
public static void main(String[] args)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
generate
public void generate()
throws IOException
- Throws:
IOException
Copyright © 2018. All rights reserved.