SystemContext

public final class SystemContext extends BoundedContext

An implementation of BoundedContext used for the System domain.

Orchestrates the system entities that serve the goal of monitoring, auditing, and debugging the domain-specific entities.

Each BoundedContext has an associated SystemContext. The system entities describe the meta information about the domain entities of the associated BoundedContext. A system bounded context does NOT have an associated bounded context.

See also

Functions

Link copied to clipboard
Creates a client for this context.
Link copied to clipboard
Creates a new instance of SystemBoundedContext from the given BoundedContextBuilder.
Link copied to clipboard
Obtains instance of of this BoundedContext}.

Inherited functions

Link copied to clipboard
public void checkOpen()
Ensures that the object is open.
Link copied to clipboard
public void close()
Closes the BoundedContext performing all necessary clean-ups.
public abstract void close()
Link copied to clipboard
Obtains instance of CommandBus of this BoundedContext.
Link copied to clipboard
public EventBus eventBus()
Obtains instance of EventBus of this BoundedContext.
Link copied to clipboard
public boolean hasEntitiesOfType(Class<? extends Entity<? extends Object, ? extends Object>> entityClass)
Verifies if this Bounded Context contains entities of the passed class.
Link copied to clipboard
public boolean hasEntitiesWithState(Class<? extends EntityState> stateClass)
Verifies if this Bounded Context has entities with the state of the passed class.
Link copied to clipboard
Obtains instance of ImportBus of this BoundedContext.
Link copied to clipboard
protected final void init()
Performs post-creation initialization of the instance.
Link copied to clipboard
Provides access to features of the context used internally by the framework.
Link copied to clipboard
public boolean isMultitenant()
Returns true if the Bounded Context is designed to serve more than one tenant of the application, false otherwise.
Link copied to clipboard
public boolean isOpen()
Tells if the object is still open.
Link copied to clipboard
Creates a new builder for a multitenant BoundedContext.
Link copied to clipboard
public BoundedContextName name()
Obtains an ID of the Bounded Context.
Link copied to clipboard
protected final void register(Repository<? extends Object, ? extends Object> repository)
Adds the passed repository to the context.
Link copied to clipboard
protected void registerCommandDispatcher(CommandDispatcher dispatcher)
Registers the passed command dispatcher with the CommandBus.
Link copied to clipboard
protected void registerEventDispatcher(EventDispatcher dispatcher)
Registering the passed event dispatcher with the buses of this context.
Link copied to clipboard
Creates a new builder for a single tenant BoundedContext.
Link copied to clipboard
public ContextSpec spec()
Obtains specification of this context.
Link copied to clipboard
public Stand stand()
Obtains instance of Stand of this BoundedContext.
Link copied to clipboard
public Set<TypeName> stateTypes()
Obtains the set of all entity type names.
public Set<TypeName> stateTypes(Visibility visibility)
Obtains a set of entity type names by their visibility.
Link copied to clipboard
public String toString()
Returns the name of this Bounded Context.