org.osgi.framework.resource
Interface Resource

All Known Subinterfaces:
BundleRevision

public interface Resource

A resource is the representation of a uniquely identified and typed data. A resources can be wired together via capabilities and requirements.

Version:
$Id: 56916cb2597067bdf63e757c078787eccebf3953 $

Method Summary
 java.util.List<Capability> getCapabilities(java.lang.String namespace)
          Returns the capabilities declared by this resource.
 java.util.List<Requirement> getRequirements(java.lang.String namespace)
          Returns the requirements declared by this bundle resource.
 

Method Detail

getCapabilities

java.util.List<Capability> getCapabilities(java.lang.String namespace)
Returns the capabilities declared by this resource.

Parameters:
namespace - The name space of the declared capabilities to return or null to return the declared capabilities from all name spaces.
Returns:
A list containing a snapshot of the declared Capabilitys, or an empty list if this resource declares no capabilities in the specified name space.

getRequirements

java.util.List<Requirement> getRequirements(java.lang.String namespace)
Returns the requirements declared by this bundle resource.

Parameters:
namespace - The name space of the declared requirements to return or null to return the declared requirements from all name spaces.
Returns:
A list containing a snapshot of the declared Requirement s, or an empty list if this resource declares no requirements in the specified name space.


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.