Packages

case class Context(loc: At, id: Definitions.Identifier, options: Seq[Definitions.ContextOption] = Seq.empty[ContextOption], types: Seq[Type] = Seq.empty[Type], entities: Seq[Entity] = Seq.empty[Entity], adaptors: Seq[Adaptor] = Seq.empty[Adaptor], sagas: Seq[Saga] = Seq.empty[Saga], streamlets: Seq[Streamlet] = Seq.empty[Streamlet], functions: Seq[Function] = Seq.empty[Function], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include[ContextDefinition]] = Seq
.empty[Include[ContextDefinition]]
, handlers: Seq[Handler] = Seq.empty[Handler], projections: Seq[Projection] = Seq.empty[Projection], repositories: Seq[Repository] = Seq.empty[Repository], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], connections: Seq[Connector] = Seq.empty[Connector], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)
extends Processor[ContextOption, ContextDefinition] with DomainDefinition with Product with Serializable

A bounded context definition. Bounded contexts provide a definitional boundary on the language used to describe some aspect of a system. They imply a tightly integrated ecosystem of one or more microservices that share a common purpose. Context can be used to house entities, read side projections, sagas, adaptations to other contexts, apis, and etc.

loc

The location of the bounded context definition

id

The name of the context

options

The options for the context

types

Types defined for the scope of this context

entities

Entities defined for the scope of this context

adaptors

Adaptors to messages from other contexts

sagas

Sagas with all-or-none semantics across various entities

functions

Features specified for the context

brief

A brief description (one sentence) for use in documentation

description

An optional description of the context

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Context
  2. Serializable
  3. Product
  4. Equals
  5. DomainDefinition
  6. Processor
  7. WithTypes
  8. VitalDefinition
  9. WithTerms
  10. WithIncludes
  11. WithAuthors
  12. WithOptions
  13. Definition
  14. Container
  15. BrieflyDescribedValue
  16. DescribedValue
  17. RiddlValue
  18. RiddlNode
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Context(loc: At, id: Definitions.Identifier, options: Seq[Definitions.ContextOption] = Seq.empty[ContextOption], types: Seq[Type] = Seq.empty[Type], entities: Seq[Entity] = Seq.empty[Entity], adaptors: Seq[Adaptor] = Seq.empty[Adaptor], sagas: Seq[Saga] = Seq.empty[Saga], streamlets: Seq[Streamlet] = Seq.empty[Streamlet], functions: Seq[Function] = Seq.empty[Function], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include[ContextDefinition]] = Seq
    .empty[Include[ContextDefinition]]
    , handlers: Seq[Handler] = Seq.empty[Handler], projections: Seq[Projection] = Seq.empty[Projection], repositories: Seq[Repository] = Seq.empty[Repository], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], connections: Seq[Connector] = Seq.empty[Connector], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    The location of the bounded context definition

    id

    The name of the context

    options

    The options for the context

    types

    Types defined for the scope of this context

    entities

    Entities defined for the scope of this context

    adaptors

    Adaptors to messages from other contexts

    sagas

    Sagas with all-or-none semantics across various entities

    functions

    Features specified for the context

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the context

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val adaptors: Seq[Adaptor]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val authors: Seq[AuthorRef]
    Definition Classes
    ContextWithAuthors
  7. implicit def bool2int(b: Boolean): Int

    Implicit conversion of boolean to Int for easier computation of statistics below

    Implicit conversion of boolean to Int for easier computation of statistics below

    b

    The boolean to convert to an Int

    Definition Classes
    VitalDefinition
  8. val brief: Option[Definitions.LiteralString]
    Definition Classes
    ContextBrieflyDescribedValue
  9. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def completeness: (Int, Int)

    Compute the completeness of this definition.

    Compute the completeness of this definition. Vital definitions should have options, terms, and authors but includes are optional. Incompleteness is signalled by child definitions that are empty.

    returns

    A numerator and denominator for percent complete

    Definition Classes
    VitalDefinition
  12. val connections: Seq[Connector]
  13. lazy val contents: Seq[ContextDefinition]
    Definition Classes
    ContextWithIncludesContainer
  14. val description: Option[Definitions.Description]
    Definition Classes
    ContextDescribedValue
  15. def descriptionValue: String
    Definition Classes
    DescribedValue
  16. val entities: Seq[Entity]
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  19. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    WithOptionsRiddlNode
  20. val functions: Seq[Function]
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. def getOptionValue[OPT <: Definitions.ContextOption](implicit arg0: ClassTag[OPT]): Option[Seq[Definitions.LiteralString]]
    Definition Classes
    WithOptions
  23. val handlers: Seq[Handler]
    Definition Classes
    ContextProcessor
  24. def hasAuthors: Boolean
    Definition Classes
    WithAuthorsDefinition
  25. def hasInlets: Boolean
    Definition Classes
    Processor
  26. def hasOption[OPT <: Definitions.ContextOption](implicit arg0: ClassTag[OPT]): Boolean
    Definition Classes
    WithOptions
  27. def hasOptions: Boolean
    Definition Classes
    WithOptionsDefinition
  28. def hasOutlets: Boolean
    Definition Classes
    Processor
  29. def hasTerms: Boolean
    Definition Classes
    WithTerms
  30. def hasTypes: Boolean
    Definition Classes
    WithTypesDefinition
  31. val id: Definitions.Identifier
    Definition Classes
    ContextDefinition
  32. def identify: String
    Definition Classes
    Definition
  33. def identifyWithLoc: String
    Definition Classes
    Definition
  34. val includes: Seq[Include[ContextDefinition]]
    Definition Classes
    ContextWithIncludes
  35. val inlets: Seq[Inlet]
    Definition Classes
    ContextProcessor
  36. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  37. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    ContextWithOptionsContainerRiddlNode
  38. def isImplicit: Boolean
    Definition Classes
    Definition
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def isRootContainer: Boolean
    Definition Classes
    Container
  41. def isVital: Boolean
    Definition Classes
    VitalDefinitionDefinition
  42. final val kind: String
    Definition Classes
    ContextDefinition
  43. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    ContextRiddlValue
  44. def maturity: Int

    Compute the 'maturity' of a definition.

    Compute the 'maturity' of a definition. Maturity is a score with no maximum but with scoring rules that target 100 points per definition. Maturity is broken down this way:

    • has a description - up to 50 points depending on # of non empty lines
    • has a brief description - 5 points
    • has options specified - 5 points
    • has terms defined -
    • has an author in or above the definition - 5 points \-
    • definition specific things: 0.65
    Definition Classes
    ContextVitalDefinition
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  49. val options: Seq[Definitions.ContextOption]
    Definition Classes
    ContextWithOptions
  50. val outlets: Seq[Outlet]
    Definition Classes
    ContextProcessor
  51. def productElementNames: Iterator[String]
    Definition Classes
    Product
  52. val projections: Seq[Projection]
  53. val repositories: Seq[Repository]
  54. val sagas: Seq[Saga]
  55. val streamlets: Seq[Streamlet]
  56. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  57. val terms: Seq[Term]
    Definition Classes
    ContextWithTerms
  58. val types: Seq[Type]
    Definition Classes
    ContextWithTypes
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DomainDefinition

Inherited from WithTypes

Inherited from WithTerms

Inherited from WithAuthors

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped