Package org.axonframework.modelling.saga
Class SagaScopeDescriptor
java.lang.Object
org.axonframework.modelling.saga.SagaScopeDescriptor
- All Implemented Interfaces:
Serializable,ScopeDescriptor
- Direct Known Subclasses:
SagaScopeDescriptor
Describes the scope of a Saga by means of its type and identifier.
- Since:
- 3.3
- Author:
- Steven van Beelen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSagaScopeDescriptor(String type, Object identifier) Instantiate a SagaScopeDescriptor with the providedtypeandidentifier. -
Method Summary
-
Constructor Details
-
SagaScopeDescriptor
@ConstructorProperties({"type","identifier"}) public SagaScopeDescriptor(String type, Object identifier) Instantiate a SagaScopeDescriptor with the providedtypeandidentifier.
-
-
Method Details
-
getType
The type of Saga described by this scope- Returns:
- the type of Saga described by this scope
-
getIdentifier
The identifier of the Saga targeted with this scope- Returns:
- identifier of the Saga targeted with this scope
-
scopeDescription
Description copied from interface:ScopeDescriptor- Specified by:
scopeDescriptionin interfaceScopeDescriptor- Returns:
- a
Stringdescription of aScopeobject
-
hashCode
public int hashCode() -
equals
-
toString
-