Class NullConfigurationPersister
- java.lang.Object
-
- org.jboss.as.controller.persistence.AbstractConfigurationPersister
-
- org.jboss.as.controller.persistence.NullConfigurationPersister
-
- All Implemented Interfaces:
ConfigurationPersister
,ExtensibleConfigurationPersister
,SubsystemXmlWriterRegistry
public final class NullConfigurationPersister extends AbstractConfigurationPersister
A configuration persister which does not store configuration changes.- Author:
- David M. Lloyd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfo
-
-
Field Summary
-
Fields inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
NULL_SNAPSHOT_INFO
-
-
Constructor Summary
Constructors Constructor Description NullConfigurationPersister()
NullConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.jboss.dmr.ModelNode>
load()
Load the configuration model, returning it as a list of updates to be executed by the controller.ConfigurationPersister.PersistenceResource
store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses)
Persist the given configuration model ifConfigurationPersister.isPersisting()
would returntrue
, otherwise return a no-opConfigurationPersister.PersistenceResource
.-
Methods inherited from class org.jboss.as.controller.persistence.AbstractConfigurationPersister
deleteSnapshot, listSnapshots, marshallAsXml, registerSubsystemWriter, successfulBoot, unregisterSubsystemWriter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
isPersisting, publish, snapshot
-
-
-
-
Constructor Detail
-
NullConfigurationPersister
public NullConfigurationPersister()
-
NullConfigurationPersister
public NullConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
-
-
Method Detail
-
store
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses)
Persist the given configuration model ifConfigurationPersister.isPersisting()
would returntrue
, otherwise return a no-opConfigurationPersister.PersistenceResource
.- Parameters:
model
- the model to persistaffectedAddresses
- the addresses of the resources that were changed- Returns:
- callback to use to control whether the stored model should be flushed to permanent storage. Will not be
null
-
load
public List<org.jboss.dmr.ModelNode> load()
Load the configuration model, returning it as a list of updates to be executed by the controller.- Returns:
- the configuration model as a list of updates to be executed by the controller.
-
-