You have bindMultivalue utill implemented and it's cool. But is there any way to implement multi factories that can traverse parent container also?
Use case is the following:
A system with plugin architecture requires plugins to be initialized and returned to plugin consumer as array. This can be partially done using following:
create a token to hold plugin factories
create a plugin multivalue token and bind resolving factory to it
Problems with this approach are following:
multivalue token will resolve in child containers and will not use parent container values
we have to implement resolution scopes by hand inside resolving factory which might lead to bugs and inconsistency
Is there some less fragile approach which doesn't involve the library API change or this feature can only be solved by adding things inside?
You have
bindMultivalue
utill implemented and it's cool. But is there any way to implement multi factories that can traverse parent container also?Use case is the following: A system with plugin architecture requires plugins to be initialized and returned to plugin consumer as array. This can be partially done using following:
Problems with this approach are following:
Is there some less fragile approach which doesn't involve the library API change or this feature can only be solved by adding things inside?