org.jboss.osgi.resolver.spi
Class AbstractWiring

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.AbstractWiring
All Implemented Interfaces:
XWiring, org.osgi.resource.Wiring
Direct Known Subclasses:
AbstractBundleWiring

public class AbstractWiring
extends Object
implements XWiring

The abstract implementation of a Wiring.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Constructor Summary
AbstractWiring(XResource resource, List<org.osgi.resource.Wire> reqwires, List<org.osgi.resource.Wire> provwires)
           
 
Method Summary
 void addProvidedWire(org.osgi.resource.Wire wire)
           
 void addRequiredWire(org.osgi.resource.Wire wire)
           
protected  HostedCapability getHostedCapability(XCapability cap)
           
 List<org.osgi.resource.Wire> getProvidedResourceWires(String namespace)
           
 List<org.osgi.resource.Wire> getRequiredResourceWires(String namespace)
           
 XResource getResource()
           
 List<org.osgi.resource.Capability> getResourceCapabilities(String namespace)
           
 List<org.osgi.resource.Requirement> getResourceRequirements(String namespace)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractWiring

public AbstractWiring(XResource resource,
                      List<org.osgi.resource.Wire> reqwires,
                      List<org.osgi.resource.Wire> provwires)
Method Detail

addRequiredWire

public void addRequiredWire(org.osgi.resource.Wire wire)
Specified by:
addRequiredWire in interface XWiring

addProvidedWire

public void addProvidedWire(org.osgi.resource.Wire wire)
Specified by:
addProvidedWire in interface XWiring

getResourceCapabilities

public List<org.osgi.resource.Capability> getResourceCapabilities(String namespace)
Specified by:
getResourceCapabilities in interface org.osgi.resource.Wiring

getHostedCapability

protected HostedCapability getHostedCapability(XCapability cap)

getResourceRequirements

public List<org.osgi.resource.Requirement> getResourceRequirements(String namespace)
Specified by:
getResourceRequirements in interface org.osgi.resource.Wiring

getProvidedResourceWires

public List<org.osgi.resource.Wire> getProvidedResourceWires(String namespace)
Specified by:
getProvidedResourceWires in interface org.osgi.resource.Wiring

getRequiredResourceWires

public List<org.osgi.resource.Wire> getRequiredResourceWires(String namespace)
Specified by:
getRequiredResourceWires in interface org.osgi.resource.Wiring

getResource

public XResource getResource()
Specified by:
getResource in interface org.osgi.resource.Wiring

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 JBoss by Red Hat. All Rights Reserved.