public final class Engine extends Object
ModelProcessor
that takes a configuration file in order to configure AndroMDA.ModelProcessor
Modifier and Type | Method and Description |
---|---|
void |
initialize(Configuration configuration)
Initializes Engine (discovers all plugins, etc) with the
given configuration.
|
ModelValidationMessage[] |
loadModelsIfNecessary(Configuration configuration)
Checks to see if any of the models in the given configuration
should be loaded (based on whether or not they've been modified),
and if so, performs the load.
|
static Engine |
newInstance()
Create a new Engine instance.
|
ModelValidationMessage[] |
run(Configuration configuration,
boolean lastModifiedCheck,
String historyDir)
Runs Engine with the given configuration.
|
void |
shutdown()
Shuts down this instance.
|
public static Engine newInstance()
public void initialize(Configuration configuration)
run(Configuration, boolean, String)
.configuration
- public ModelValidationMessage[] loadModelsIfNecessary(Configuration configuration)
configuration
- the AndroMDA configuration the contains the repositories containing
the models to load.public ModelValidationMessage[] run(Configuration configuration, boolean lastModifiedCheck, String historyDir)
configuration
- the String that contains the configuration
contents for configuring Engine.lastModifiedCheck
- Check for model modifications after last generationhistoryDir
- Overrides model lastModifiedCheck globallypublic void shutdown()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.