Voiteh / Depin

Dependency injection library for Ceylon
Apache License 2.0
0 stars 0 forks source link

Change API of dependency resolution #43

Closed Voiteh closed 5 years ago

Voiteh commented 5 years ago

Dependency should be only a value holder for resolvance, all execution should be made in injections. Because decorators uses Dependency.resolve attribute the API of decorators must also be changed to use injections . New Injection function definition

shared formal Anything inject({Depedency*} generics);

Currently there is no support for injecting typeParameters although we could also threat them as Dependencyies

Decorators will be bound to Injection class . We should move also api module to core as it is no have sense to hold it separately.

Voiteh commented 5 years ago

This cant be achived