[subsystems] Update code based on latest resource, resolver, repository, and
subsystem APIs.
--------------------------------------------------------------------------------------------
Key: ARIES-739
URL: https://issues.apache.org/jira/browse/ARIES-739
Project: Aries
Issue Type: New Feature
Components: Subsystem
Reporter: John Ross
Assignee: John Ross
There have been a number of updates to the resource, resolver, repository, and
subsystem APIs due to ongoing RFC 112 and 152 work. Although more changes are
still to come, this seemed like a good time to introduce them in order to keep
up.
Here are some of the more noteworthy changes.
The resource API moved from org.osgi.framework.wiring to
org.osgi.framework.resource.
The resolver API changed from resolve(Environment, Requirement...) :
Map<Resource, List<Wire>> to resolve(Environment, Collection<Resource>,
Collection<Resource>) : Map<Resource, List<Wire>>. The two collections
represent mandatory and optional resources respectively.
A number of constants from SubsystemConstants were added or removed. Methods
that rely on data from subsystem metadata are to throw IllegalStateExceptions
if called before the metadata has been read.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira