Richard S. Hall | a2dc451 | 2006-04-04 13:17:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * $Header: /cvshome/build/org.osgi.service.obr/src/org/osgi/service/obr/Resolver.java,v 1.3 2006/03/16 14:56:17 hargrave Exp $ |
| 3 | * |
| 4 | * Copyright (c) OSGi Alliance (2006). All Rights Reserved. |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
| 17 | */ |
| 18 | |
| 19 | // This document is an experimental draft to enable interoperability |
| 20 | // between bundle repositories. There is currently no commitment to |
| 21 | // turn this draft into an official specification. |
| 22 | package org.osgi.service.obr; |
| 23 | |
| 24 | public interface Resolver |
| 25 | { |
| 26 | |
| 27 | void add(Resource resource); |
| 28 | |
| 29 | Requirement[] getUnsatisfiedRequirements(); |
| 30 | |
| 31 | Resource[] getOptionalResources(); |
| 32 | |
| 33 | Requirement[] getReason(Resource resource); |
| 34 | |
| 35 | Resource[] getResources(Requirement requirement); |
| 36 | |
| 37 | Resource[] getRequiredResources(); |
| 38 | |
| 39 | Resource[] getAddedResources(); |
| 40 | |
| 41 | boolean resolve(); |
| 42 | |
| 43 | void deploy(boolean start); |
| 44 | } |