Class InMemoryRepository<AGGREGATE extends Identified<String>>
java.lang.Object
org.opentestfactory.services.components.repository.InMemoryRepository<AGGREGATE>
- Type Parameters:
AGGREGATE- The type of Aggregate that a class extending this one will handle.
- All Implemented Interfaces:
AggregateRepository<String,AGGREGATE>
public abstract class InMemoryRepository<AGGREGATE extends Identified<String>>
extends Object
implements AggregateRepository<String,AGGREGATE>
Basic implementation of
AggregateRepository for Aggregates with String keys. Extends it
in a class annotated @Component to have a singleton repository.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
protected final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
InMemoryRepository
public InMemoryRepository()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceAggregateRepository<String,AGGREGATE extends Identified<String>>
-
save
- Specified by:
savein interfaceAggregateRepository<String,AGGREGATE extends Identified<String>>
-
remove
- Specified by:
removein interfaceAggregateRepository<String,AGGREGATE extends Identified<String>>
-