org.escot
Class WireFactory
java.lang.Object
|
+--org.escot.WireFactory
- public class WireFactory
- extends Object
The WireFactory is used to build wires.
|
Method Summary |
static Wire |
buildWire(Object publisher,
EscotFeature pubFeature,
Object subscriber,
EscotFeature subFeature)
|
protected static Object |
buildWireOrCanWire(Object publisher,
EscotFeature publishedFeature,
Object subscriber,
EscotFeature subscribedFeature,
int method)
Return value depends on method. |
static boolean |
canWire(Object publisher,
EscotFeature pubFeature,
Object subscriber,
EscotFeature subFeature)
Returns true if the given publisherFeature can be wired to the given subscriberFeature. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WireFactory
public WireFactory()
canWire
public static boolean canWire(Object publisher,
EscotFeature pubFeature,
Object subscriber,
EscotFeature subFeature)
- Returns true if the given publisherFeature can be wired to the given subscriberFeature. Returns false otherwise.
buildWire
public static Wire buildWire(Object publisher,
EscotFeature pubFeature,
Object subscriber,
EscotFeature subFeature)
throws WiringException
buildWireOrCanWire
protected static Object buildWireOrCanWire(Object publisher,
EscotFeature publishedFeature,
Object subscriber,
EscotFeature subscribedFeature,
int method)
- Return value depends on method. Returns either null, or CAN_WIRE_OBJECT, if method is CAN_WIRE.
Returns an actual wire object or null if method is BUILD_WIRE