Package org.jmolecules.spring
Interface AssociationResolver<T extends org.jmolecules.ddd.types.AggregateRoot<T,ID>,ID extends org.jmolecules.ddd.types.Identifier>
- All Superinterfaces:
AggregateLookup<T,ID>
public interface AssociationResolver<T extends org.jmolecules.ddd.types.AggregateRoot<T,ID>,ID extends org.jmolecules.ddd.types.Identifier>
extends AggregateLookup<T,ID>
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionResolves theAggregateRootpointed to by the givenAssociation.default TresolveRequired(org.jmolecules.ddd.types.Association<T, ID> association) Resolves theAggregateRootpointed to by the givenAssociation.Methods inherited from interface org.jmolecules.spring.AggregateLookup
findById
-
Method Details
-
resolve
Resolves theAggregateRootpointed to by the givenAssociation.- Parameters:
association- must not be null.- Returns:
- will never be null.
-
resolveRequired
Resolves theAggregateRootpointed to by the givenAssociation.- Parameters:
association- must not be null.- Returns:
- will never be null.
- Throws:
IllegalArgumentException- in case the resolution fails.
-