Uses of Interface
org.dellroad.stuff.pobj.PersistentObjectDelegate
-
Uses of PersistentObjectDelegate in org.dellroad.stuff.pobj
Modifier and TypeClassDescriptionclass
Support superclass forPersistentObjectDelegate
classes, with implementations of all methods other thanserialize()
anddeserialize()
.class
Adapter class forPersistentObjectDelegate
implementations that wrap a nested delegate.class
APersistentObjectDelegate
that is also aAbstractSchemaUpdater
that automatically applies needed updates to the persistent XML file.class
PersistentObjectDelegate
that uses Spring'sMarshaller
andUnmarshaller
interfaces for XML conversion.class
PersistentObjectSchemaUpdater
optimized for use with Spring:SpringPersistentObjectSchemaUpdater.getOrderingTieBreaker()
is overridden to break ties by ordering updates in the same order as they are defined in the bean factory. This class implementsInitializingBean
and verifies all required properties are set. If no updates are explicitly configured, then allSpringPersistentObjectSchemaUpdate
s found in the containing bean factory are automatically configured; this requires that all of the schema updates are defined in the sameListableBeanFactory
. The default value may be configured as an XML resourceModifier and TypeFieldDescriptionprotected final PersistentObjectDelegate<T>
PersistentObjectSchemaUpdater.delegate
protected final PersistentObjectDelegate<T>
FilterDelegate.nested
Modifier and TypeMethodDescriptionPersistentObject.getDelegate()
Get the configuredPersistentObjectDelegate
.Modifier and TypeMethodDescriptionstatic <T> T
PersistentObject.read
(PersistentObjectDelegate<T> delegate, File file, boolean validate) Read in a persistent object from the givenFile
using the given delegate.static <T> T
PersistentObject.read
(PersistentObjectDelegate<T> delegate, InputStream input, boolean validate) Read in a persistent object from the givenInputStream
using the given delegate.static <T> T
PersistentObject.read
(PersistentObjectDelegate<T> delegate, Source source, boolean validate) Read in a persistent object using the given delegate.void
PersistentObject.setDelegate
(PersistentObjectDelegate<T> delegate) Configure thePersistentObjectDelegate
.static <T> void
PersistentObject.write
(T root, PersistentObjectDelegate<T> delegate, File file) Write a persistent object using the given delegate.static <T> void
PersistentObject.write
(T root, PersistentObjectDelegate<T> delegate, OutputStream output) Write a persistent object using the given delegate.static <T> void
PersistentObject.write
(T root, PersistentObjectDelegate<T> delegate, Result result) Write a persistent object using the given delegate.ModifierConstructorDescriptionFilterDelegate
(PersistentObjectDelegate<T> nested) Constructor.PersistentObject
(PersistentObjectDelegate<T> delegate, File file) Simplified constructor configuring for synchronous write-back and no persistent file checks.PersistentObject
(PersistentObjectDelegate<T> delegate, File file, long writeDelay, long checkInterval) Constructor.Constructor.Constructor.