Java Code Examples for org.osgi.framework.wiring.BundleCapability#getDirectives()

The following examples show how to use org.osgi.framework.wiring.BundleCapability#getDirectives() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BundleCapabilityImpl.java    From knopflerfish.org with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public BundleCapabilityImpl(BundleCapability bc, BundleGeneration bg) {
  gen = bg;
  owner = ((BundleCapabilityImpl)bc).owner;
  namespace = bc.getNamespace();
  attributes = bc.getAttributes();
  directives = bc.getDirectives();
}
 
Example 2
Source File: BundleCapabilityImpl.java    From knopflerfish.org with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
static CapabilityDTO getDTO(BundleCapability bc, BundleRevisionImpl bri) {
  CapabilityDTO res = new CapabilityDTO();
  res.id = ((DTOId)bc).dtoId;
  res.namespace = bc.getNamespace();
  res.directives = new HashMap<String, String>(bc.getDirectives());
  res.attributes = Util.safeDTOMap(bc.getAttributes());
  res.resource = bri.dtoId;
  return res;
}