CacheBindingPlugin class

DDA plugin that detects @Cacheable on UseCase return types and generates cache observer bindings in DomainState.

When a UseCase is annotated with @Cacheable, the generated DomainState automatically calls .bindCache() on the slice, enabling cross-view state synchronization.

Inheritance

Constructors

CacheBindingPlugin()

Properties

hashCode → int
The hash code for this object.
no setterinherited
priority → int
Priority for ordering when multiple plugins target the same method.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetDecorator → String
The decorator name this plugin handles, without the @ prefix.
no setteroverride
targetDecorators → List<String>
All decorator names this plugin handles, without the @ prefix.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onApply(MethodAST method, DecoratorAST decorator, ZorphyContext context) → void
Called when the AST scanner finds a decorator this plugin handles.
override
onBuildEnd(Map<String, dynamic> config) → void
Optional: called once per build after all files are processed.
inherited
onBuildStart(Map<String, dynamic> config) → void
Optional: called once per build before scanning begins.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited