Class CompositeAggregateRepository
- java.lang.Object
-
- io.fluxcapacitor.javaclient.modeling.CompositeAggregateRepository
-
- All Implemented Interfaces:
AggregateRepository
public class CompositeAggregateRepository extends Object implements AggregateRepository
-
-
Constructor Summary
Constructors Constructor Description CompositeAggregateRepository(AggregateRepository... delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancachingAllowed(Class<?> aggregateType)protected <T> Optional<AggregateRepository>getDelegate(Class<T> aggregateType)<T> Aggregate<T>load(String aggregateId, Class<T> aggregateType, boolean onlyCached)booleansupports(Class<?> aggregateType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.modeling.AggregateRepository
load
-
-
-
-
Constructor Detail
-
CompositeAggregateRepository
public CompositeAggregateRepository(AggregateRepository... delegates)
-
-
Method Detail
-
supports
public boolean supports(Class<?> aggregateType)
- Specified by:
supportsin interfaceAggregateRepository
-
cachingAllowed
public boolean cachingAllowed(Class<?> aggregateType)
- Specified by:
cachingAllowedin interfaceAggregateRepository
-
load
public <T> Aggregate<T> load(String aggregateId, Class<T> aggregateType, boolean onlyCached)
- Specified by:
loadin interfaceAggregateRepository
-
getDelegate
protected <T> Optional<AggregateRepository> getDelegate(Class<T> aggregateType)
-
-