Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

AggregrateLifecycle description - Mark as deleted #100

Open
marleinevankampen opened this issue Sep 11, 2018 · 0 comments
Open

AggregrateLifecycle description - Mark as deleted #100

marleinevankampen opened this issue Sep 11, 2018 · 0 comments

Comments

@marleinevankampen
Copy link

Explain in the Command Model chapter how an Aggregate can be ended/closed/deleted.

Description in code about the AggregateLifecycle in code is:

  /**
     * Marks this aggregate as deleted, instructing a repository to remove that aggregate at an appropriate time.
     * <p/>
     * Note that different repository implementations may react differently to aggregates marked for deletion.
     * Typically, Event Sourced Repositories will ignore the marking and expect deletion to be provided as part of Event
     * information.
     */
    public static void markDeleted() {
        getInstance().doMarkDeleted();
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants