ModuleContext class

Context for tracking module dependencies and exports

Constructors

ModuleContext()

Properties

globalServices → Set<Type>
no setter
hashCode → int
The hash code for this object.
no setterinherited
moduleExports → Map<Type, Set<Type>>
no setter
moduleImports → Map<Type, Set<Type>>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceToModule → Map<Type, Type>
no setter

Methods

canAccess(Type requestingModule, Type serviceType) → bool
Check if a module can access a service
getAvailableServices(Type moduleType) → Set<Type>
Get available services for a module
markAsGlobal(Type serviceType) → void
Mark a service as globally available (for root module)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerModuleExports(Type moduleType, List<Type> exports) → void
Register a module's exports
registerModuleImports(Type moduleType, List<Type> imports) → void
Register a module's imports
registerServiceProvider(Type serviceType, Type moduleType) → void
Register which module provides a service
toString() → String
A string representation of this object.
inherited

Operators

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