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
.
Constructor and Description |
---|
Builder(FeatureModelPersistenceManager.Builder other) |
Modifier and Type | Method and Description |
---|---|
FeatureModelPersistenceManager |
build()
Build the
FeatureModelPersistenceManager . |
void |
close() |
protected void |
finalize() |
FeatureModelPersistenceManager.Builder |
saveSupport(IFeatureSaveSupport saveSupport)
Sets a delegate that implements save support for a feature model.
|
public Builder(@NotNull FeatureModelPersistenceManager.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public FeatureModelPersistenceManager build() throws IllegalStateException
FeatureModelPersistenceManager
.FeatureModelPersistenceManager
.IllegalStateException
- when no delegate has been set.@NotNull public FeatureModelPersistenceManager.Builder saveSupport(@NotNull IFeatureSaveSupport saveSupport)
saveSupport
- the delegate implementing save support.