cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r552162 - in /incubator/cxf/trunk: api/src/main/java/org/apache/cxf/clustering/ api/src/main/java/org/apache/cxf/configuration/ api/src/main/java/org/apache/cxf/endpoint/ rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/
Date Sat, 30 Jun 2007 15:26:56 GMT
Author: ningjiang
Date: Sat Jun 30 08:26:55 2007
New Revision: 552162

URL: http://svn.apache.org/viewvc?view=rev&rev=552162
Log:
Fixed some api java doc errors and uncommented the test method of BinaryDataTest

Modified:
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurable.java
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurer.java
    incubator/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/EndpointResolverRegistry.java
    incubator/cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/BinaryDataTest.java

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java?view=diff&rev=552162&r1=552161&r2=552162
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
(original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/clustering/FailoverStrategy.java
Sat Jun 30 08:26:55 2007
@@ -32,8 +32,7 @@
     /**
      * Get the alternate endpoints for this invocation.
      * 
-     * @param exchange the current Exchange
-     * @param invocation the current InvocationContext
+     * @param exchange the current Exchange     
      * @return a failover endpoint if one is available
      */
     List<Endpoint> getAlternateEndpoints(Exchange exchange);
@@ -41,7 +40,7 @@
     /**
      * Select one of the alternate endpoints for a retried invocation.
      * 
-     * @param a List of alternate endpoints if available
+     * @param alternates List of alternate endpoints if available
      * @return the selected endpoint
      */
     Endpoint selectAlternateEndpoint(List<Endpoint> alternates);

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurable.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurable.java?view=diff&rev=552162&r1=552161&r2=552162
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurable.java (original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurable.java Sat
Jun 30 08:26:55 2007
@@ -18,8 +18,17 @@
  */
 
 package org.apache.cxf.configuration;
-
+/**
+ * The configurable interface for get the bean's name
+ * 
+ * A class which implements this interface should return the 
+ * unique bean name for configuration to use 
+ */
 public interface Configurable {
     
+    /**
+     * Get the configurable object's Bean name
+     * @return the bean name 
+     */
     String getBeanName();    
 }

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurer.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurer.java?view=diff&rev=552162&r1=552161&r2=552162
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurer.java (original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configuration/Configurer.java Sat
Jun 30 08:26:55 2007
@@ -19,8 +19,13 @@
 
 package org.apache.cxf.configuration;
 
-
-public interface Configurer {
+/**
+ * The configurer's interface
+ * 
+ * A class that implements this interface will perform the 
+ * bean's configuration work
+ */
+public interface Configurer {    
     
     String DEFAULT_USER_CFG_FILE = "cxf.xml";
 
@@ -28,7 +33,18 @@
     
     String USER_CFG_FILE_PROPERTY_URL = "cxf.config.file.url";
 
+    /**
+     * set up the Bean's value by use Dependency Injection from the application context
+     * @param beanInstance the instance of bean which need to be configured
+     */
     void configureBean(Object beanInstance);
+    
+    /**
+     * set up the Bean's value by use Dependency Injection from the application context
+     * with a proper name. You can use * as the prefix of wildcard name.
+     * @param name the name of the bean which need to be configured
+     * @param beanInstance the instance of bean which need to be configured
+     */
     void configureBean(String name, Object beanInstance);
 
 }

Modified: incubator/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/EndpointResolverRegistry.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/EndpointResolverRegistry.java?view=diff&rev=552162&r1=552161&r2=552162
==============================================================================
--- incubator/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/EndpointResolverRegistry.java
(original)
+++ incubator/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/EndpointResolverRegistry.java
Sat Jun 30 08:26:55 2007
@@ -84,7 +84,7 @@
      * Walk the list of registered EndpointResolvers, so as to mint a new 
      * abstract EPR for a given service name.
      * 
-     * @param serviceName
+     * @param serviceName 
      * @return the newly minted EPR if appropriate, null otherwise
      */
     EndpointReferenceType mint(QName serviceName);
@@ -93,7 +93,7 @@
      * Walk the list of registered EndpointResolvers, so as to mint a new 
      * abstract EPR for a gievn physical EPR.
      * 
-     * @param serviceName
+     * @param physical 
      * @return the newly minted EPR if appropriate, null otherwise
      */
     EndpointReferenceType mint(EndpointReferenceType physical);

Modified: incubator/cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/BinaryDataTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/BinaryDataTest.java?view=diff&rev=552162&r1=552161&r2=552162
==============================================================================
--- incubator/cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/BinaryDataTest.java
(original)
+++ incubator/cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/services/base64/BinaryDataTest.java
Sat Jun 30 08:26:55 2007
@@ -29,9 +29,8 @@
         createService(BinaryDataService.class, null);
 
         runTests();
-    }
-    
-    //    
+    }    
+      
     private void runTests() throws Exception {
         Node res = invoke("BinaryDataService",
                           "/org/apache/cxf/aegis/services/base64/binary.xml");
@@ -39,10 +38,9 @@
         addNamespace("b", "http://base64.services.aegis.cxf.apache.org");
         assertValid("//b:return[text()='OK']", res);
 
-//        res = invoke("BinaryDataService", 
-//                     LocalTransportFactory.TRANSPORT_ID,
-//                     "/org/apache/cxf/aegis/services/base64/binaryEmpty.xml");
-//        assertValid("//b:out[text()='OK']", res);
+        res = invoke("BinaryDataService",                     
+                     "/org/apache/cxf/aegis/services/base64/binaryEmpty.xml");
+        assertValid("//b:return[text()='OK']", res);
     }
 
 }



Mime
View raw message