public class LogicalWire extends LogicalScaArtifact<LogicalComponent<?>>
target attribute of a reference element or
using the wire element. Furthermore, a wire may be unbound or explicitly configured with a binding. If the wire is unbound and crosses process
boundaries, it will be bound by the runtime using the SCA binding. During deployment, wires are created and resolved incrementally. A wire is created for
When a wire is instantiated, its source reference and target service URI are resolved against the domain.| Constructor and Description |
|---|
LogicalWire(LogicalComponent<?> parent,
LogicalReference source,
LogicalService target,
java.net.URI contributionUri)
Instantiates a logical wire.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests for quality whether the source and target URIs are the same.
|
LogicalReference |
getSource()
Gets the source of the wire.
|
LogicalBinding |
getSourceBinding() |
LogicalState |
getState()
Returns the wire state.
|
LogicalService |
getTarget()
Gets the target service of the wire.
|
LogicalBinding |
getTargetBinding() |
java.net.URI |
getTargetContribution()
Returns the contribution URI of the target for this wire.
|
int |
hashCode()
Hash code based on the source and target URIs.
|
void |
setSourceBinding(LogicalBinding sourceBinding) |
void |
setState(LogicalState state)
Sets the wire state.
|
void |
setTargetBinding(LogicalBinding targetBinding) |
addMetadata, getMetadata, getParentpublic LogicalWire(LogicalComponent<?> parent, LogicalReference source, LogicalService target, java.net.URI contributionUri)
parent - component within which the wire is defined.source - the source reference of the wiretarget - the target servicecontributionUri - the target service contributionpublic LogicalReference getSource()
public LogicalService getTarget()
public LogicalState getState()
public void setState(LogicalState state)
state - the wire statepublic java.net.URI getTargetContribution()
public LogicalBinding getSourceBinding()
public void setSourceBinding(LogicalBinding sourceBinding)
public LogicalBinding getTargetBinding()
public void setTargetBinding(LogicalBinding targetBinding)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to be tested against.public int hashCode()
hashCode in class java.lang.Object