You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by js...@apache.org on 2006/10/03 14:07:46 UTC

svn commit: r452444 - /incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java

Author: jstrachan
Date: Tue Oct  3 05:07:46 2006
New Revision: 452444

URL: http://svn.apache.org/viewvc?view=rev&rev=452444
Log:
added some helper constructors so its a little easier to construct endpoints from inside components; also ensured that the endpoint is validated prior to being activated

Modified:
    incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java

Modified: incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java?view=diff&rev=452444&r1=452443&r2=452444
==============================================================================
--- incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java (original)
+++ incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/ProviderEndpoint.java Tue Oct  3 05:07:46 2006
@@ -15,12 +15,26 @@
 import javax.jbi.messaging.MessageExchange.Role;
 import javax.jbi.servicedesc.ServiceEndpoint;
 import javax.jbi.JBIException;
+import javax.xml.namespace.QName;
 
 public abstract class ProviderEndpoint extends Endpoint implements ExchangeProcessor {
 
     private ServiceEndpoint activated;
     private DeliveryChannel channel;
     private MessageExchangeFactory exchangeFactory;
+
+
+    public ProviderEndpoint() {
+    }
+
+    public ProviderEndpoint(ServiceUnit serviceUnit, QName service, String endpoint) {
+        super(serviceUnit, service, endpoint);
+    }
+
+    public ProviderEndpoint(DefaultComponent component, ServiceEndpoint endpoint) {
+        super(component.getServiceUnit(), endpoint.getServiceName(), endpoint.getEndpointName());
+        logger = component.getLogger();
+    }
 
     /* (non-Javadoc)
      * @see org.apache.servicemix.common.Endpoint#getRole()