ContextSpec

public final class ContextSpec

Specification of a bounded context.

The spec includes the values required to build a BoundedContext.

Functions

Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isMultitenant()
Checks if the context is multitenant or not.
Link copied to clipboard
public static ContextSpec multitenant(String name)
Creates a spec of a multitenant context with the given name.
Link copied to clipboard
public BoundedContextName name()
Obtains the context name.
Link copied to clipboard
public static ContextSpec singleTenant(String name)
Creates a spec of a single tenant context with the given name.
Link copied to clipboard
public boolean storesEvents()
Checks if the specified context stores its event log.
Link copied to clipboard
Returns a single-tenant version of this instance, if it is multitenant, or this instance if it is single-tenant.
Link copied to clipboard
public String toString()