Package dev.getelements.elements.rt
Interface PersistenceStrategy
- All Known Implementing Classes:
TransactionPersistenceStrategy
public interface PersistenceStrategy
Provides a means to a persist the state of
Resource
instances as managed by an associated
ResourceService
.-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceStrategy
Gets a nullPersistenceStrategy
which is designed to work withResourceService
types which do not support persistence at all.void
persist
(ResourceId resourceId) Requests that theResourceId
with the suppliedResourceId
be persisted.
-
Method Details
-
persist
Requests that theResourceId
with the suppliedResourceId
be persisted. Throwing an exception if the operation is not possible at the time being.- Parameters:
resourceId
- theResourceId
to persist
-
getNullPersistence
Gets a nullPersistenceStrategy
which is designed to work withResourceService
types which do not support persistence at all.- Returns:
-