Package com.luciad.models.features
Class FeatureModelPersistenceManager.Builder
java.lang.Object
com.luciad.models.features.FeatureModelPersistenceManager.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureModelPersistenceManager
public static final class FeatureModelPersistenceManager.Builder
extends Object
implements AutoCloseable
IFeatureModel
implementations that have support for saving changes
can use this class to create a FeatureModelPersistenceManager instance.
Users of the model can then retrieve this instance using IFeatureModel#getPersistenceManager
.
- Since:
- 2023.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theFeatureModelPersistenceManager
.void
close()
protected void
finalize()
saveSupport
(IFeatureSaveSupport saveSupport) Sets a delegate that implements save support for a feature model.
-
Constructor Details
-
Builder
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Build theFeatureModelPersistenceManager
.- Returns:
- the
FeatureModelPersistenceManager
. - Throws:
IllegalStateException
- when no delegate has been set.
-
saveSupport
@NotNull public FeatureModelPersistenceManager.Builder saveSupport(@NotNull IFeatureSaveSupport saveSupport) Sets a delegate that implements save support for a feature model.- Parameters:
saveSupport
- the delegate implementing save support.- Returns:
- this builder.
-