net.sf.xsnapshot.cfg
Class XSnapshotPropertiesConfigurator
java.lang.Object
net.sf.xsnapshot.cfg.XSnapshotPropertiesConfigurator
- public class XSnapshotPropertiesConfigurator
- extends Object
configures an XSnapshot Registry based on a properties file format.
- Author:
- Daniel Kokotov
Method Summary |
static void |
configure(XSnapshotRegistry registry,
org.apache.commons.configuration.Configuration config)
Configure the given xsnapshot registry with the mappings in the given configuration.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSnapshotPropertiesConfigurator
public XSnapshotPropertiesConfigurator()
configure
public static void configure(XSnapshotRegistry registry,
org.apache.commons.configuration.Configuration config)
- Configure the given xsnapshot registry with the mappings in the given configuration.
Loads a set of snapshot, helper and type transformer mappings in the given properties file
the mappings are expected in the form
xsnapshot.snapshot-mapping.[fully-qualified model class]|[snapshot name]=[fully-qualified snapshot class]
xsnapshot.helper-mapping.[fully-qualified snapshot class]=[fully-qualified helper class]
xsnapshot.transformer-mapping.[transformer name]=[fully-qualified transformer class]
- Parameters:
registry
- the registry that should be configured with the read-in mappings.config
- the Configuration object from which to load mappings.