public class DefaultModelFactory extends Object implements org.azyva.dragom.model.ModelFactory
ModelFactory implementation that loads a Model from
configuration stored in an XML resource identified by an arbitrary URL.
XmlConfig is used to read the XML resource and SimpleModel is
used as the Model implementation.
A static Map of URL to Model instances is used in order to reuse Model instances. This is useful in case a single JVM instance is used for multiple tool executions (NaigGun can be useful in that regard).
The model URL is defined by the initialization property property org.azyva.dragom.UrlModel which must be defined (if this class is used as the ModelFactory).
| Constructor and Description |
|---|
DefaultModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.azyva.dragom.model.Model |
getModel(Properties propertiesInit) |
public org.azyva.dragom.model.Model getModel(Properties propertiesInit)
getModel in interface org.azyva.dragom.model.ModelFactoryCopyright © 2015–2016 AZYVA INC.. All rights reserved.