public class XmlConfigurationPersister extends AbstractConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfoNULL_SNAPSHOT_INFO| Constructor and Description |
|---|
XmlConfigurationPersister(File fileName,
QName rootElement,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser,
org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
Construct a new instance.
|
XmlConfigurationPersister(File fileName,
QName rootElement,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser,
org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser,
boolean suppressLoad)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.jboss.dmr.ModelNode> |
load()
Load the configuration model, returning it as a list of updates to be
executed by the controller.
|
void |
registerAdditionalRootElement(QName anotherRoot,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> parser) |
ConfigurationPersister.PersistenceResource |
store(org.jboss.dmr.ModelNode model,
Set<PathAddress> affectedAddresses)
Persist the given configuration model if
ConfigurationPersister.isPersisting() would return true, otherwise
return a no-op ConfigurationPersister.PersistenceResource. |
protected void |
successfulBoot(File file) |
deleteSnapshot, listSnapshots, marshallAsXml, registerSubsystemWriter, registerSubsystemWriter, successfulBoot, unregisterSubsystemWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPersisting, publish, snapshot, snapshotpublic XmlConfigurationPersister(File fileName, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
fileName - the configuration base file namerootElement - the root element of the configuration filerootParser - the root model parserrootDeparser - the root model deparserpublic XmlConfigurationPersister(File fileName, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser, boolean suppressLoad)
fileName - the configuration base file namerootElement - the root element of the configuration filerootParser - the root model parserrootDeparser - the root model deparserpublic void registerAdditionalRootElement(QName anotherRoot, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> parser)
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException
ConfigurationPersister.isPersisting() would return true, otherwise
return a no-op ConfigurationPersister.PersistenceResource.model - the model to persistaffectedAddresses - the addresses of the resources that were changednullConfigurationPersistenceExceptionpublic List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
ConfigurationPersistenceExceptionprotected void successfulBoot(File file) throws ConfigurationPersistenceException
Copyright © 2018 JBoss by Red Hat. All rights reserved.