|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javagen.agile.core.ioc.spring.SpringMain
org.javagen.funcgen.Main
public class Main
Loads FuncGen configuration and executes code generation pipeline using Spring framework IoC BeanFactory.
Properties inputs have the following precedence from lowest to highest:
GlobalPropertyHolder bean within the FuncGenSpringConfig.xml file.propertyFile. Note: this can be specified as a GlobalPropertyHolder property and overridden here.properties instance. Note: these are usually set by the invoking tool (i.e. Maven).This is an extremely flexible way to configure the code generator, avoiding a one-size-fits-all approach.
| Field Summary |
|---|
| Fields inherited from class org.javagen.agile.core.ioc.spring.SpringMain |
|---|
beanFactory, configFile, DEFAULT_CONFIG_FILE, DEFAULT_CONFIGURER_BEAN_ID, DEFAULT_PIPELINE_BEAN_ID, properties, propertyFile, startModelBeanId |
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Loads and runs FuncGen using Spring configuration file. |
| Methods inherited from class org.javagen.agile.core.ioc.spring.SpringMain |
|---|
getBean, getBeanFactory, getConfigFile, getConfigurerBeanId, getPipelineBeanId, getStartModelBeanId, runPipeline, setArgs, setConfigFile, setProperties, setPropertyFile, setStartModelBeanId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
pipeline bean.
args - takes an optional Spring XML configuration file location and/or a properties file.
Files can be any valid URL or classpath location. File types are recognized by their extension,
names and order are not important. Here are some valid examples:
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||