Constructors
Dependencyshared Dependency(String name, TypeIdentifier definition, NestableDeclaration declaration)
Parameters:
  • name

    Name of dependency

  • definition

    Identifies type providing ability to easly retreive instance of dependency.

  • declaration

    Declaration of given dependency

Attributes
declarationshared NestableDeclaration declaration

Declaration of given dependency

identifiershared TypeIdentifier identifier

Identifies type providing ability to easly retreive instance of dependency.

nameshared String name

Name of dependency

resolveshared formal Anything resolve

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

Throws
stringshared actual default String string= "``identifier`` ``name``"

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 functionality works depending on implementation.

Nested Classes
Decorationshared static abstract Decoration

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

Nested Exceptions
DecorationErrorshared static DecorationError
ResolutionErrorshared static ResolutionError

Thrown whenver resolve failes to complete succesfully