/** * Get the current {@link AggregateLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link AggregateLifecycle} */ protected static AggregateLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Get the current {@link SagaLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link SagaLifecycle} */ protected static SagaLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Provide a description of the current {@link Scope}. * * @return a {@link ScopeDescriptor} describing the current {@link Scope} */ public static ScopeDescriptor describeCurrentScope() { return getCurrentScope().describeScope(); }
/** * Get the current {@link SagaLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link SagaLifecycle} */ protected static SagaLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Get the current {@link AggregateLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link AggregateLifecycle} */ protected static AggregateLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Get the current {@link SagaLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link SagaLifecycle} */ protected static SagaLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Get the current {@link AggregateLifecycle} instance for the current thread. If none exists an {@link * IllegalStateException} is thrown. * * @return the thread's current {@link AggregateLifecycle} */ protected static AggregateLifecycle getInstance() { return Scope.getCurrentScope(); }
/** * Provide a description of the current {@link Scope}. * * @return a {@link ScopeDescriptor} describing the current {@link Scope} */ public static ScopeDescriptor describeCurrentScope() { return getCurrentScope().describeScope(); }
/** * Provide a description of the current {@link Scope}. * * @return a {@link ScopeDescriptor} describing the current {@link Scope} */ public static ScopeDescriptor describeCurrentScope() { return getCurrentScope().describeScope(); }