KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > service > resolver > HostSpecification


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.service.resolver;
12
13 /**
14  * A representation of one host bundle constraint as seen in a
15  * bundle manifest and managed by a state and resolver.
16  * <p>
17  * Clients may implement this interface.
18  * </p>
19  * @since 3.1
20  */

21 public interface HostSpecification extends VersionConstraint {
22     /**
23      * Returns the list of host BundleDescriptions that satisfy this HostSpecification
24      * @return the list of host BundleDescriptions that satisfy this HostSpecification
25      */

26     public BundleDescription[] getHosts();
27
28     /**
29      * Returns if this HostSpecification is allowed to have multiple hosts
30      * @return true if this HostSpecification is allowed to have multiple hosts
31      */

32     public boolean isMultiHost();
33 }
34
Popular Tags