Defines abstraction over given declaration bound to be injected. Given Dependency has it's definition created from NestableDeclaration and Identification. For function depdendencies parameters will be present. For classes and member classes container will be present.

no subtypes hierarchy

Constructors
Dependencyshared Dependency(Definition definition, Dependency? container = null, {Dependency*} parameters = ...)
Parameters:
  • container = null
  • parameters = empty
Attributes
containershared Dependency? container

Container of given nested dependecy

definitionshared Definition definition

Definition of given dependency

parametersshared {Dependency*} parameters

Parameters of given function dependency

resolveshared formal Anything resolve

Resolve given Dependency declaration to object or null, which this depedency represents

stringshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Refines Object.string
Inherited Attributes
Attributes inherited from: Object
hash, string
Inherited Methods
Methods inherited from: Object
equals
Nested Interfaces
Decoratorshared static Decorator

Depdency decorated with annotation implementing this interface, will change resolve function works depending on implementation.

Nested Classes
Decoratedshared static abstract Decorated

Used for creating of decorated dependency, reduces runtime errors with missing decorator passed as parameters.

Definitionshared static Definition

Defines information about dependency

Nested Exceptions
ResolutionErrorshared static ResolutionError

Thrown whenver resolve failes to complete succesfully