Class NullConfigurationPersister
java.lang.Object
org.jboss.as.controller.persistence.AbstractConfigurationPersister
org.jboss.as.controller.persistence.NullConfigurationPersister
- All Implemented Interfaces:
ConfigurationPersister,ExtensibleConfigurationPersister,SubsystemXmlWriterRegistry
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
ConstructorsConstructorDescriptionNullConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether a call persist to persistent storage has been successfully completed.List<org.jboss.dmr.ModelNode>load()Load the configuration model, returning it as a list of updates to be executed by the controller.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, unregisterSubsystemWriterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
isPersisting, publish, snapshot
-
Constructor Details
-
NullConfigurationPersister
public NullConfigurationPersister() -
NullConfigurationPersister
public NullConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
-
-
Method Details
-
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
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.
-
hasStored
public boolean hasStored()Description copied from interface:ConfigurationPersisterGets whether a call persist to persistent storage has been successfully completed.The default implementation always returns
false- Returns:
trueif a call toConfigurationPersister.store(ModelNode, Set)will return an object that actually writes
-