Top Methods
io.github.adr.embedded

public @Interface MADR

extends Annotation
Annotations
@ADRs:@io.github.adr.linked.ADR(1), @io.github.adr.linked.ADR(2)
@Target:ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE, TYPE_PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented
@Repeatable:MADRs
Imports
java.lang.annotation.Documented, .ElementType, .Repeatable, .Retention, .RetentionPolicy, .Target, io.github.adr.linked.ADR

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

Considered alternatives
alternatives
()

Considered alternatives.

public String

Returns:

Chosen alternative
chosenAlternative
()

The chosen alternative.

public String[]
consequences()

Returns: Consequences.

public String
contextAndProblem()

Returns: Context and problem statement

public String
justification()

Returns: Justification.

public int[]

Returns:

the ids of related decisions
relatedDecisions
()

Decisions being related to this decision.

public String

Returns:

title
title
()

Short title of solved problem and solution

public String

Returns:

User story as reference.
userStory
()

The user story belonging to this ADR.

public int

Returns:

The number of the ADR
value
()

The number part of the ADR.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

alternativesback to summary
public String[] alternatives()

Considered alternatives.

Returns:String[]

Considered alternatives

chosenAlternativeback to summary
public String chosenAlternative()

The chosen alternative. Invariant: alternatives().contains(chosenAlternative())

Returns:String

Chosen alternative

consequencesback to summary
public String[] consequences()
Returns:String[]

Consequences. e.g., negative impact on quality attribute, follow-up decisions required, ...

contextAndProblemback to summary
public String contextAndProblem()
Returns:String

Context and problem statement

justificationback to summary
public String justification()
Returns:String

Justification. e.g., only alternative, which meets k.o. criterion decision driver | which resolves force | ... | comes out best (see below)

relatedDecisionsback to summary
public int[] relatedDecisions()

Decisions being related to this decision.

Returns:int[]

the ids of related decisions

titleback to summary
public String title()

Short title of solved problem and solution

Returns:String

title

userStoryback to summary
public String userStory()

The user story belonging to this ADR. Typically, a reference to the ticket in the issue tracker.

Returns:String

User story as reference.

valueback to summary
public int value()

The number part of the ADR. For instance, 1 gets expanded to the full id ADR-0001.

Returns:int

The number of the ADR