Interface UseCaseAdapter
-
public interface UseCaseAdapterAUseCaseAdapterhas all necessary information, how to invoke the configured use cases. It was configured byUseCaseInvocationBuilder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SerializedMessageBusattachAndEnhance(MessageBus messageBus)First the givenMessageBusis enhanced with theSerializerandDeserializerfrom theUseCaseInvocationBuilder.voidattachTo(SerializedMessageBus serializedMessageBus)Takes the use case invocation information from theUseCaseInvocationBuilderto subscribe the use cases onto the givenSerializedMessageBus.
-
-
-
Method Detail
-
attachTo
void attachTo(SerializedMessageBus serializedMessageBus)
Takes the use case invocation information from theUseCaseInvocationBuilderto subscribe the use cases onto the givenSerializedMessageBus.- Parameters:
serializedMessageBus- theSerializedMessageBusto subscribe to
-
attachAndEnhance
SerializedMessageBus attachAndEnhance(MessageBus messageBus)
First the givenMessageBusis enhanced with theSerializerandDeserializerfrom theUseCaseInvocationBuilder. Then necessary subscriber for the use cases are added to the bus.- Parameters:
messageBus- theMessageBusto use and enhance- Returns:
- the configured
SerializedMessageBus
-
-