You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/10/26 11:54:33 UTC

svn commit: r467938 - in /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework: Endpoint.java EndpointMBean.java

Author: gnodet
Date: Thu Oct 26 02:54:33 2006
New Revision: 467938

URL: http://svn.apache.org/viewvc?view=rev&rev=467938
Log:
Change the EndpointMBean to avoid using getXxx for operations

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/Endpoint.java
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointMBean.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/Endpoint.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/Endpoint.java?view=diff&rev=467938&r1=467937&r2=467938
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/Endpoint.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/Endpoint.java Thu Oct 26 02:54:33 2006
@@ -43,8 +43,6 @@
 import org.apache.servicemix.jbi.util.DOMUtil;
 import org.apache.servicemix.jbi.util.QNameUtil;
 
-import sun.security.action.GetLongAction;
-
 public class Endpoint implements EndpointMBean, MBeanInfoProvider {
 
     private static final Log log = LogFactory.getLog(Endpoint.class);
@@ -69,7 +67,7 @@
         return endpoint.getServiceName();
     }
     
-    public String getReference() {
+    public String loadReference() {
         try {
             return DOMUtil.asIndentedXML(endpoint.getAsReference(null));
         } catch (TransformerException e) {
@@ -77,7 +75,7 @@
         }
     }
     
-    public String getWSDL() {
+    public String loadWSDL() {
         try {
             return DOMUtil.asXML(registry.getEndpointDescriptor(endpoint));
         } catch (Exception e) {
@@ -104,8 +102,8 @@
 
     public MBeanOperationInfo[] getOperationInfos() throws JMException {
         OperationInfoHelper helper = new OperationInfoHelper();
-        helper.addOperation(getObjectToManage(), "getReference", "retrieve the endpoint reference");
-        helper.addOperation(getObjectToManage(), "getWSDL", "retrieve the wsdl description of this endpoint");
+        helper.addOperation(getObjectToManage(), "loadReference", "retrieve the endpoint reference");
+        helper.addOperation(getObjectToManage(), "loadWSDL", "retrieve the wsdl description of this endpoint");
         helper.addOperation(getObjectToManage(), "send", "send a simple message exchange to test this endpoint");
         return helper.getOperationInfos();
     }

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointMBean.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointMBean.java?view=diff&rev=467938&r1=467937&r2=467938
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointMBean.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointMBean.java Thu Oct 26 02:54:33 2006
@@ -16,8 +16,6 @@
  */
 package org.apache.servicemix.jbi.framework;
 
-import java.net.URI;
-
 import javax.xml.namespace.QName;
 
 public interface EndpointMBean {
@@ -30,9 +28,9 @@
     
     public String getComponentName();
     
-    public String getReference();
+    public String loadReference();
     
-    public String getWSDL();
+    public String loadWSDL();
     
     public String send(String content, String operation, String mep);