Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
iPOJO-1.0.0
-
None
Description
iPOJO Temporal dependencies injects directly the service object(s).
To be able to given service objects to collaborators (helper objects) without breaking the dynamism, proxies could also be injected.
In this case, it's no more a direct reference on service object(s) but a reference on a proxy wrapping the dependency.
For scalar dependency an injected 'dynamic' proxy can delegate to service provider, managing on timeout policies during the lookup.
For aggregate dependencies, a collection can be injected. When the code call the iterator() or the toArray(...) methods service objects are returned (a cached copy). The timeout policy can also be applied during the service lookup.
So, with those proxied access, temporal dependencies can be given to helper components easily.