camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1419316 - in /camel/branches/camel-2.10.x: ./ camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
Date Mon, 10 Dec 2012 10:09:51 GMT
Author: davsclaus
Date: Mon Dec 10 10:09:50 2012
New Revision: 1419316

URL: http://svn.apache.org/viewvc?rev=1419316&view=rev
Log:
CAMEL-5838: XPathBuilder. Extend ServiceSupport for better lifecycle handling.

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1419305

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java?rev=1419316&r1=1419315&r2=1419316&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
(original)
+++ camel/branches/camel-2.10.x/camel-core/src/main/java/org/apache/camel/builder/xml/XPathBuilder.java
Mon Dec 10 10:09:50 2012
@@ -51,13 +51,12 @@ import org.apache.camel.Expression;
 import org.apache.camel.NoTypeConversionAvailableException;
 import org.apache.camel.Predicate;
 import org.apache.camel.RuntimeExpressionException;
-import org.apache.camel.Service;
 import org.apache.camel.WrappedFile;
 import org.apache.camel.component.bean.BeanInvocation;
 import org.apache.camel.impl.DefaultExchange;
 import org.apache.camel.spi.Language;
 import org.apache.camel.spi.NamespaceAware;
-import org.apache.camel.support.SynchronizationAdapter;
+import org.apache.camel.support.ServiceSupport;
 import org.apache.camel.util.ExchangeHelper;
 import org.apache.camel.util.IOHelper;
 import org.apache.camel.util.MessageHelper;
@@ -86,7 +85,7 @@ import static org.apache.camel.builder.x
  *
  * @see XPathConstants#NODESET
  */
-public class XPathBuilder implements Expression, Predicate, NamespaceAware, Service {
+public class XPathBuilder extends ServiceSupport implements Expression, Predicate, NamespaceAware
{
     private static final transient Logger LOG = LoggerFactory.getLogger(XPathBuilder.class);
     private static final String SAXON_OBJECT_MODEL_URI = "http://saxon.sf.net/jaxp/xpath/om";
     private static final String OBTAIN_ALL_NS_XPATH = "//*/namespace::*";
@@ -1088,7 +1087,8 @@ public class XPathBuilder implements Exp
         return variableResolver;
     }
 
-    public void start() throws Exception {
+    @Override
+    public void doStart() throws Exception {
         if (xpathFactory == null) {
             xpathFactory = createXPathFactory();
         }
@@ -1120,7 +1120,8 @@ public class XPathBuilder implements Exp
         }
     }
 
-    public void stop() throws Exception {
+    @Override
+    public void doStop() throws Exception {
         pool.clear();
         poolLogNamespaces.clear();
     }



Mime
View raw message