public class SimpleListPropertyCommandExecutor extends Object implements ListPropertyCommandExecutor
ListCommands regardless of whether they are executable or not.| Constructor and Description |
|---|
SimpleListPropertyCommandExecutor(WeakObjectRegistry objectRegistry,
SilentChangeExecutor silentChangeExecutor,
ValueMapper valueMapper,
ListPropertyMetaDataStore listVersions)
Initializes the instance with all its dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(AddToList command)
Executes an command that was received from an other peer if appropriate.
|
void |
execute(RemoveFromList command)
Executes an command that was received from an other peer if appropriate.
|
void |
execute(ReplaceInList command)
Executes an command that was received from an other peer if appropriate.
|
public SimpleListPropertyCommandExecutor(WeakObjectRegistry objectRegistry, SilentChangeExecutor silentChangeExecutor, ValueMapper valueMapper, ListPropertyMetaDataStore listVersions)
objectRegistry - Used to resolve UUIDs to objects.silentChangeExecutor - Used to disable listeners while executing changes.valueMapper - Used to map value objects to the correct values.listVersions - Used to update the local version of a list property.public void execute(AddToList command)
ListPropertyCommandExecutorexecute in interface ListPropertyCommandExecutorcommand - The received command.public void execute(RemoveFromList command)
ListPropertyCommandExecutorexecute in interface ListPropertyCommandExecutorcommand - The received command.public void execute(ReplaceInList command)
ListPropertyCommandExecutorexecute in interface ListPropertyCommandExecutorcommand - The received command.Copyright © 2015 Saxonia Systems AG. All Rights Reserved.