You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by gd...@apache.org on 2004/05/27 16:20:53 UTC
cvs commit: incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/proxy EndPointProxyInfo.java
gdamour 2004/05/27 07:20:53
Modified: sandbox/messaging/src/java/org/apache/geronimo/messaging/proxy
EndPointProxyInfo.java
Log:
Adds a convenience constructor.
Revision Changes Path
1.2 +13 -1 incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/proxy/EndPointProxyInfo.java
Index: EndPointProxyInfo.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/proxy/EndPointProxyInfo.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EndPointProxyInfo.java 20 May 2004 13:37:11 -0000 1.1
+++ EndPointProxyInfo.java 27 May 2004 14:20:53 -0000 1.2
@@ -43,6 +43,18 @@
private final NodeInfo[] targets;
/**
+ * Convenience constructor
+ *
+ * @param anEndPointID EndPoint identifier.
+ * @param anInterface Interface of the EndPoint proxy.
+ * @param aTarget Node hosting the EndPoint.
+ */
+ public EndPointProxyInfo(Object anEndPointID, Class anInterface,
+ NodeInfo aTarget) {
+ this(anEndPointID, new Class[] {anInterface}, new NodeInfo[] {aTarget});
+ }
+
+ /**
* Creates the meta-data of an EndPoint proxy.
*
* @param anEndPointID EndPoint identifier.