Voiteh / Depin

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

Default parameter handling #12

Closed Voiteh closed 5 years ago

Voiteh commented 5 years ago

Whenever default parameter is available and no dependencies are available for injection it should be used.

Voiteh commented 5 years ago

After testing defaulted parameters of a class it seems that we can call Class<>.apply() without provided defaulted parameters. Current implementation of Depin (Provider) throws on not found parameter in registry which may be not the best place to handle this situation.