KickJava   Java API By Example, From Geeks To Geeks.

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


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 bundle import 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 BundleSpecification extends VersionConstraint {
22
23     /**
24      * Returns whether or not this bundle specificiation is exported from the
25      * declaring bundle.
26      *
27      * @return whether this specification is exported
28      */

29     public boolean isExported();
30
31     /**
32      * Returns whether or not this bundle specificiation is optional.
33      *
34      * @return whether this specification is optional
35      */

36     public boolean isOptional();
37 }
38
Popular Tags