Documentation for a newer release is available.
View Latest
How Do I Register an Adapter With the Domain?
Registering an adapter with the domain is simple; we just have to use the appropriate method provided on the model domain class. For example:
@Bean
public ExampleDomain exampleDomain(ActorSystem actorSystem, ExternalDomainPort externalDomainAdapter) {
return new ExampleDomain.Builder(actorSystem)
.withExampleExternalDomainAdapter(externalDomainAdapter)
.build();
}
Here we are providing an implementation of the generated port for the "Example External Domain". Note: this port will have a separate execute(…) method corresponding to each individual request defined in the port.