ScopeHandler<T> class abstract mixin

manages dependencies under it's scopeName. If Weaver class enters/leaves a scope with the same scope name of this class. This handler will be notified and calls onEnterScope/onLeaveScope callbacks accordingly.

When defining ScopeHandler class, It is also needed to define a Scope class as well which both classes should have the same generic argument type for the scope argument.

dispose method can be overridden to handle disposing this class id needed. It will be called by Weaver class when this ScopeHandler instance is being removed from Weaver class.

Constructors

ScopeHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeName String
no setter
scopeState ScopeState
getter/setter pair

Methods

dispose() → void
handle(Weaver weaver) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEnterScope(Weaver weaver, T argument) Future<void>
onLeaveScope(Weaver weaver) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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