Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (c) OSGi Alliance (2001, 2011). All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.osgi.service.packageadmin;
 
An exported package. Objects implementing this interface are created by the Package Admin service.

The term exported package refers to a package that has been exported from a resolved bundle. This package may or may not be currently wired to other bundles.

The information about an exported package provided by this object may change. An ExportedPackage object becomes stale if the package it references has been updated or removed as a result of calling PackageAdmin.refreshPackages(). If this object becomes stale, its getName() and getVersion() methods continue to return their original values, isRemovalPending() returns true, and getExportingBundle() and getImportingBundles() return null.

Deprecated:
The PackageAdmin service has been replaced by the org.osgi.framework.wiring package.
Version:
$Id: 22ce5e8e388107b04edba3aea2f3036b8026798d $
ThreadSafe:
Noimplement:
 
 public interface ExportedPackage {
Returns the name of the package associated with this exported package.

Returns:
The name of this exported package.
 
 	public String getName();

Returns the bundle exporting the package associated with this exported package.

Returns:
The exporting bundle, or null if this ExportedPackage object has become stale.
 
Returns the resolved bundles that are currently wired to this exported package.

Bundles which require the exporting bundle associated with this exported package are considered to be wired to this exported package are included in the returned array. See RequiredBundle.getRequiringBundles().

Returns:
The array of resolved bundles currently wired to this exported package, or null if this ExportedPackage object has become stale. The array will be empty if no bundles are wired to this exported package.
 
 	public Bundle[] getImportingBundles();

Returns the version of this exported package.

Deprecated:
As of 1.2, replaced by getVersion().
Returns:
The version of this exported package, or null if no version information is available.
 
Returns the version of this exported package.

Returns:
The version of this exported package, or org.osgi.framework.Version.emptyVersion if no version information is available.
Since:
1.2
 
	public Version getVersion();

Returns true if the package associated with this ExportedPackage object has been exported by a bundle that has been updated or uninstalled.

Returns:
true if the associated package is being exported by a bundle that has been updated or uninstalled, or if this ExportedPackage object has become stale; false otherwise.
	public boolean isRemovalPending();
New to GrepCode? Check out our FAQ X