public class AbstractWiring extends Object implements Wiring
Wiring.| Constructor and Description |
|---|
AbstractWiring(org.jboss.gravia.resource.Resource resource,
List<Wire> reqwires,
List<Wire> provwires) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvidedWire(Wire wire) |
void |
addRequiredWire(Wire wire) |
List<Wire> |
getProvidedResourceWires(String namespace)
Returns the
Wires to the provided capabilities
of this wiring. |
List<Wire> |
getRequiredResourceWires(String namespace)
Returns the
Wires to the requirements in use
by this wiring. |
org.jboss.gravia.resource.Resource |
getResource()
Returns the resource associated with this wiring.
|
List<org.jboss.gravia.resource.Capability> |
getResourceCapabilities(String namespace)
Returns the capabilities provided by this wiring.
|
List<org.jboss.gravia.resource.Requirement> |
getResourceRequirements(String namespace)
Returns the requirements of this wiring.
|
String |
toString() |
public org.jboss.gravia.resource.Resource getResource()
WiringgetResource in interface Wiringpublic void addRequiredWire(Wire wire)
public void addProvidedWire(Wire wire)
public List<org.jboss.gravia.resource.Capability> getResourceCapabilities(String namespace)
WiringOnly capabilities considered by the resolver are returned.
A capability may not be required by any wiring and thus there may be no
wires for the capability.
getResourceCapabilities in interface Wiringnamespace - The namespace of the capabilities to return or
null to return the capabilities from all namespaces.Capabilitys, or an
empty list if this wiring provides no capabilities in the
specified namespace.public List<org.jboss.gravia.resource.Requirement> getResourceRequirements(String namespace)
Wiring
Only requirements considered by the resolver are returned. For example,
requirements with effective directive not equal to resolve are not returned.
A wiring for a non-fragment resource has a subset of the declared requirements from the resource and all attached fragment resources. Not all declared requirements may be present since some may be discarded. For example, if a package is declared to be optionally imported and is not actually imported, the requirement must be discarded.
getResourceRequirements in interface Wiringnamespace - The namespace of the requirements to return or
null to return the requirements from all namespaces.Requirements, or an
empty list if this wiring uses no requirements in the specified
namespace.public List<Wire> getProvidedResourceWires(String namespace)
WiringWires to the provided capabilities
of this wiring.getProvidedResourceWires in interface Wiringnamespace - The namespace of the capabilities for which to return
wires or null to return the wires for the capabilities in
all namespaces.Wires for the
capabilities of this wiring, or an empty list
if this wiring has no capabilities in the specified namespace.public List<Wire> getRequiredResourceWires(String namespace)
WiringWires to the requirements in use
by this wiring.getRequiredResourceWires in interface Wiringnamespace - The namespace of the requirements for which to return
wires or null to return the wires for the requirements in
all namespaces.Wires for the
requirements of this wiring, or an empty list
if this wiring has no requirements in the specified namespace.Copyright © 2014 JBoss by Red Hat. All rights reserved.