[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: NEW ISSUE: Representation of references with multiplicity > 1 on Component Context API
TARGET:
Java Common Annotations and APIs specification, section "Java API" / "Component Context"
DESCRIPTION:
Service Component references may be of multiplicity greater 1. While the @Reference annotation considers that case and supports injection of a collection of service references, the ComponentContext API does not support retrieval of a collection of service references.
PROPOSAL:
Add the following methods to the ComponentContext API:
<B> List<B> getServices(Class<B> businessInterface, String referenceName);
(returns a list of typed service proxies for a business interface type and a reference name)
<B> List<ServiceReference<B>> getServiceReferences(Class<B> businessInterface, String referenceName);
(returns a list typed service reference for a business interface type and a reference name)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]