public static class CommandService.Builder
extends java.lang.Object
CommandService
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CommandService.Builder |
add(BoundedContext context)
Adds the
BoundedContext to the builder. |
CommandService |
build()
Builds a new
CommandService . |
boolean |
contains(BoundedContext context)
Verifies if the passed
BoundedContext was previously added to the builder. |
CommandService.Builder |
remove(BoundedContext context)
Removes the
BoundedContext from the builder. |
@CanIgnoreReturnValue public CommandService.Builder add(BoundedContext context)
BoundedContext
to the builder.@CanIgnoreReturnValue public CommandService.Builder remove(BoundedContext context)
BoundedContext
from the builder.public boolean contains(BoundedContext context)
BoundedContext
was previously added to the builder.context
- the instance to checktrue
if the instance was added to the builder, false
otherwisepublic CommandService build()
CommandService
.