You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2007/02/12 23:48:40 UTC
svn commit: r506730 -
/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java
Author: meerajk
Date: Mon Feb 12 14:48:40 2007
New Revision: 506730
URL: http://svn.apache.org/viewvc?view=rev&rev=506730
Log:
Collapsed inbound and outbound wires into one.
Modified:
incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java
Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java?view=diff&rev=506730&r1=506729&r2=506730
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/physical/PhysicalComponentDefinition.java Mon Feb 12 14:48:40 2007
@@ -35,11 +35,8 @@
// Component Id.
private final URI componentId;
- // Inbound wires
- private final Set<WireDefinition> inboundWires = new HashSet<WireDefinition>();
-
- // Outbound wires
- private final Set<WireDefinition> outboundWires = new HashSet<WireDefinition>();
+ // Wires
+ private final Set<WireDefinition> wires = new HashSet<WireDefinition>();
/**
* Initializes the component id.
@@ -65,48 +62,25 @@
}
/**
- * Returns a read-only view of the inbound wires.
- *
- * @return List of inbound wires available on the component.
- */
- public Set<WireDefinition> getInboundWires() {
- return Collections.unmodifiableSet(inboundWires);
- }
-
- /**
- * Adds an inbound wire.
- *
- * @param inboundWire Inbound wire to add to the component.
- */
- public void addInboundWire(WireDefinition inboundWire) {
-
- if (inboundWire == null) {
- throw new IllegalArgumentException("Inbound wire is null");
- }
- inboundWires.add(inboundWire);
-
- }
-
- /**
- * Returns a read-only view of the outbound wires.
+ * Returns a read-only view of the wires.
*
- * @return List of outbound wires available on the component.
+ * @return List of wires available on the component.
*/
- public Set<WireDefinition> getOutboundWires() {
- return Collections.unmodifiableSet(outboundWires);
+ public Set<WireDefinition> getWires() {
+ return Collections.unmodifiableSet(wires);
}
/**
- * Adds an outbound wire.
+ * Adds an wire.
*
- * @param outboundWire Outbound wire to add to the component.
+ * @param wire Wire to add to the component.
*/
- public void addOutboundWire(WireDefinition outboundWire) {
+ public void addWire(WireDefinition wire) {
- if (outboundWire == null) {
- throw new IllegalArgumentException("Outbound wire is null");
+ if (wire == null) {
+ throw new IllegalArgumentException("Wire is null");
}
- outboundWires.add(outboundWire);
+ wires.add(wire);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org