public class PreferencesEntityStoreMixin extends Object implements ServiceActivation, EntityStore, EntityStoreSPI
@see Preferences
Associations are stored as the identity of the referenced Entity, ManyAssociations are stored as multi-line strings (one identity per line), and NamedAssociations are stored as multi-line strings (one name on a line, identity on the next line).
Nested ValuesComposites, Collections and Maps are stored using available ValueSerialization service.
ServiceActivation.ServiceActivator| Modifier and Type | Field and Description |
|---|---|
org.slf4j.Logger |
logger |
ScheduledThreadPoolExecutor |
reloadExecutor |
protected String |
uuid |
| Constructor and Description |
|---|
PreferencesEntityStoreMixin() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateService()
Called after ServiceComposite Activation.
|
StateCommitter |
applyChanges(EntityStoreUnitOfWork unitofwork,
Iterable<EntityState> state) |
EntityState |
entityStateOf(EntityStoreUnitOfWork unitOfWork,
ModuleSpi module,
EntityReference identity) |
Input<EntityState,EntityStoreException> |
entityStates(ModuleSpi module) |
EntityState |
newEntityState(EntityStoreUnitOfWork unitOfWork,
ModuleSpi module,
EntityReference identity,
EntityDescriptor entityDescriptor) |
EntityStoreUnitOfWork |
newUnitOfWork(Usecase usecase,
ModuleSpi module,
long currentTime) |
protected String |
newUnitOfWorkId() |
void |
passivateService()
Called before ServiceComposite Passivation.
|
protected void |
writeEntityState(DefaultEntityState state,
Preferences entityPrefs,
String identity,
long lastModified) |
protected String uuid
public org.slf4j.Logger logger
public ScheduledThreadPoolExecutor reloadExecutor
public void activateService()
throws Exception
ServiceActivationactivateService in interface ServiceActivationExceptionpublic void passivateService()
throws Exception
ServiceActivationpassivateService in interface ServiceActivationExceptionpublic EntityStoreUnitOfWork newUnitOfWork(Usecase usecase, ModuleSpi module, long currentTime)
newUnitOfWork in interface EntityStorepublic Input<EntityState,EntityStoreException> entityStates(ModuleSpi module)
entityStates in interface EntityStorepublic EntityState newEntityState(EntityStoreUnitOfWork unitOfWork, ModuleSpi module, EntityReference identity, EntityDescriptor entityDescriptor)
newEntityState in interface EntityStoreSPIpublic EntityState entityStateOf(EntityStoreUnitOfWork unitOfWork, ModuleSpi module, EntityReference identity)
entityStateOf in interface EntityStoreSPIpublic StateCommitter applyChanges(EntityStoreUnitOfWork unitofwork, Iterable<EntityState> state)
applyChanges in interface EntityStoreSPIprotected void writeEntityState(DefaultEntityState state, Preferences entityPrefs, String identity, long lastModified) throws EntityStoreException
EntityStoreExceptionprotected String newUnitOfWorkId()