Eventuous class
Eventuous
-
AggregateType - defines aggregate
-
AggregateIdType - defines aggregate ids
-
AggregateEventType - defines aggregate events
-
AggregateStateType - defines aggregate states
-
AggregateValueType - defines aggregate (state) values
-
AggregateCommandType - defines aggregate commands
-
ApplicationType - defines internal app service for an aggregate
-
GrpcServiceType - defines external grpc service for an app service Determines if parameterized types should be inferred from annotated classes. If true (default) the following parameterized types are inferred by following introspections. If false, default naming conventions are used instead if applicable, or restricted to default type otherwise.
-
TId
in AggregateType - inferred from name of aggregate class. Is restricted to type AggregateId (default naming).
@AggregateType()
class Foo extends _$Foo {}
@AggregateType(Foo) // => infers TId is FooId
class FooId {}
TData
in AggregateType - inferred from additional annotations and used in AggregateEventCreator to createTEvent
s fromTData
. Is restricted to type Object (default naming).
@AggregateType()
class Foo extends _$Foo {}
@JsonSerializable() // => infers TData is JsonMap,
@AggregateEventType(Foo) // => links FooCreated with Foo
class FooCreated extends _$FooCreated {}
TState
in Aggregate - inferred from name of aggregate class. Is restricted to type AggregateState<TValue>.
@AggregateType() // => infers TState is FooState
class Foo extends _$Foo {}
@AggregateStateType(Foo)
class FooState extends _$FooState {}
TValue
in AggregateState - inferred from name of aggregate class Is restricted to type Object.
@AggregateType() // => infers TValue is FooValue
class Foo extends _$Foo {}
class FooValue {}
@AggregateStateType(Foo) // => infers TValue is FooValue
class FooState extends _$FooState {}
When false, the limiting type of parameterized types
like TValue
in AggregateState is used if not explicitly
specified with given annotations:
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inferTypes → bool
-
final
- initializerName → String
-
Name of the generated initializer method
final
- inspectPath → String
-
Input path for code inspection
final
- inspectPattern → String
-
Input pattern for code inspection
final
- lazyService → bool
-
Application services are registered lazily
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → JsonMap -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- inferTypesDefault → const bool
- inferTypesField → const String
- initializerNameDefault → const String
- initializerNameField → const String
- inspectPathDefault → const String
- inspectPathField → const String
- inspectPatternDefault → const String
- inspectPatternField → const String
- lazyServiceDefault → const bool
- lazyServiceField → const String