Interface DefinitionRepository
- All Known Implementing Classes:
InMemoryStores
public interface DefinitionRepository
Persistence contract for event definitions.
-
Method Summary
Modifier and TypeMethodDescriptionFinds one definition.findAll()Lists known definitions.voidsave(EventDefinition definition) Inserts or replaces a definition.
-
Method Details
-
save
Inserts or replaces a definition.- Parameters:
definition- definition to insert or replace by identifier
-
find
Finds one definition.- Parameters:
id- event identifier- Returns:
- matching definition, if present
-
findAll
Collection<EventDefinition> findAll()Lists known definitions.- Returns:
- snapshot of all known definitions
-