Instances of this type must be effectively immutable. That is, for a given instance of this interface, the methods defined by this interface must always return the same result.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: A list containing a snapshot of theWires for the
capabilities of this wiring, or an empty list
if this wiring has no capabilities in the specified namespace.
For a given namespace, the list contains the wires in the order
the capabilities were specified in the manifests of the
resource and the attached fragment
resources of this wiring. There is no ordering defined between
capabilities in different namespaces.The namespace of the capabilities for which to return
wires or namespace)null to return the wires for the capabilities in
all namespaces.Returns the |
| public List | Returns: A list containing a snapshot of theWires for the
requirements of this wiring, or an empty list
if this wiring has no requirements in the specified namespace.
For a given namespace, the list contains the wires in the order
the requirements were specified in the manifests of the
resource and the attached fragment
resources of this wiring. There is no ordering defined between
requirements in different namespaces.The namespace of the requirements for which to return
wires or namespace)null to return the wires for the requirements in
all namespaces.Returns the |
| public Resource | Returns: The resource associated with this wiring.Returns the resource associated with this wiring. |
| public List | Returns: A list containing a snapshot of theCapabilitys, or an
empty list if this wiring provides no capabilities in the
specified namespace. For a given namespace, the list contains the
capabilities in the order the capabilities were specified in the
manifests of the resource and the attached
fragment resources† of this wiring. There is no
ordering defined between capabilities in different namespaces.The namespace of the capabilities to return or
namespace)null to return the capabilities from all namespaces.Returns the capabilities provided by this wiring. |
| public List | Returns: A list containing a snapshot of theRequirements, or an
empty list if this wiring uses no requirements in the specified
namespace. For a given namespace, the list contains the
requirements in the order the requirements were specified in the
manifests of the resource and the attached
fragment resources of this wiring. There is no ordering defined
between requirements in different namespaces.The namespace of the requirements to return or
namespace)null to return the requirements from all namespaces.Returns the requirements of this wiring. |
| getProvidedResourceWires | back to summary |
|---|---|
| public List Returns the
| |
| getRequiredResourceWires | back to summary |
|---|---|
| public List Returns the
| |
| getResource | back to summary |
|---|---|
| public Resource getResource() Returns the resource associated with this wiring.
| |
| getResourceCapabilities | back to summary |
|---|---|
| public List Returns the capabilities provided by this wiring.
Only capabilities considered by the resolver are returned. For example,
capabilities with
A capability may not be required by any wiring and thus there may be no
A wiring for a non-fragment resource provides a subset of the declared capabilities from the resource and all attached fragment resources†. Not all declared capabilities may be provided since some may be discarded. For example, if a package is declared to be both exported and imported, only one is selected and the other is discarded.
A wiring for a fragment resource with a symbolic name must provide
exactly one
† The
| |
| getResourceRequirements | back to summary |
|---|---|
| public List Returns the requirements of this wiring.
Only requirements considered by the resolver are returned. For example,
requirements with 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.
| |