Class AggregateTypeUtils
java.lang.Object
org.axonframework.modelling.command.inspection.AggregateTypeUtils
Utility class providing static methods to retrieve the type as a
String for a given aggregate Class.- Since:
- 4.13.2
- Author:
- Mateusz Nowak
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdeclaredTypeOf(Class<?> type) Resolves the declared type of the given aggregatetype.
-
Method Details
-
declaredTypeOf
Resolves the declared type of the given aggregatetype. This is theAggregateRoot.type()when it is present and non-empty, and otherwise thesimple nameof thetype.The declared type is the value used to identify an aggregate's snapshots and events (it is stored as the
typeof a snapshot). As such, it is the value aSnapshotFiltershould match against.- Parameters:
type- the aggregate class to resolve the declared type for- Returns:
- the declared type of the given aggregate
type - Since:
- 4.13.2
-