[jboss-cvs] JBossAS SVN: r105930 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 10 15:26:43 EDT 2010


Author: bstansberry at jboss.com
Date: 2010-06-10 15:26:43 -0400 (Thu, 10 Jun 2010)
New Revision: 105930

Modified:
   projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java
Log:
[JBCLUSTER-282] Restore a compatible getReplicants() API

Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java	2010-06-10 14:23:56 UTC (rev 105929)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java	2010-06-10 19:26:43 UTC (rev 105930)
@@ -182,11 +182,26 @@
     * remote service endpoint for the service on a particular cluster node.
     * Examples include an RMI stub, a JBoss Remoting <code>InvokerLocator</code>
     * or an HTTP URL.
+    * 
+    * @deprecated use {@link #getReplicantList()}
     */
-   public List<?> getReplicants()
+   @Deprecated
+   public ArrayList<?> getReplicants()
    {
       return replicants;
    }
+   
+   /**
+    * Gets the replicants for the clustered service. A <code>replicant</code>
+    * is a service-specific object, typically something that represents a
+    * remote service endpoint for the service on a particular cluster node.
+    * Examples include an RMI stub, a JBoss Remoting <code>InvokerLocator</code>
+    * or an HTTP URL.
+    */
+   public List<?> getReplicantList()
+   {
+      return replicants;
+   }
 
    /**
     * Sets the behavior expected from {@link #invocationsAllowed()}. 



More information about the jboss-cvs-commits mailing list