@CompileStatic class InMemoryCustomerRegistryService extends Object implements CustomerByUserIdPortOut
In-memory implementation of customer management bounded context.
Of course, this implementation only contains what is needed in the booking context. All other aspects of customer management are ignored.Modifiers | Name | Description |
---|---|---|
static class |
InMemoryCustomerRegistryService.CustomerSample |
Constructor and description |
---|
InMemoryCustomerRegistryService() |
Type Params | Return Type | Name and description |
---|---|---|
|
Customer |
findCustomerByUserId(String userId) Finds Customer based on its user identifier. |
Finds Customer based on its user identifier.
If customer can not be found, implementation throws DomainException. Corresponding message key of the exception is 'customerByUserIdPortOut.findCustomerByUserId.notFound
'.
For concrete user identifiers and corresponding CustomerIds and CustomerTypes, please take a look at the source code.