@Retention(value=RUNTIME) @Target(value={PACKAGE,ANNOTATION_TYPE}) @Documented public @interface BoundedContext
| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
A human readable description for the bounded context.
|
String |
id
A stable identifier for the bounded context.
|
String |
name
A human readable name for the bounded context.
|
String |
value
An alias for
name(). |
public abstract String id
Assuming a package com.acme.myapp annotated with BoundedContext, tooling could use a resource
bundle to lookup the keys com.acme.myapp._name and com.acme.myapp._description to resolve name and
description respectively.
public abstract String name
id(). Tooling should prevent both value() and name() from being configured at the same
time. If in doubt, the value defined in name() will be preferred.id()Copyright © 2022. All rights reserved.