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
  • 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 if ConfigurationPersister.isPersisting() would return true, otherwise return a no-op ConfigurationPersister.PersistenceResource.
      Parameters:
      model - the model to persist
      affectedAddresses - 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.
    • hasStored

      public boolean hasStored()
      Description copied from interface: ConfigurationPersister
      Gets whether a call persist to persistent storage has been successfully completed.

      The default implementation always returns false

      Returns:
      true if a call to ConfigurationPersister.store(ModelNode, Set) will return an object that actually writes