camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r682248 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java
Date Mon, 04 Aug 2008 03:32:03 GMT
Author: ningjiang
Date: Sun Aug  3 20:32:02 2008
New Revision: 682248

URL: http://svn.apache.org/viewvc?rev=682248&view=rev
Log:
CAMEL-776 Fixed some typo of Tracer.java

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java?rev=682248&r1=682247&r2=682248&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java
Sun Aug  3 20:32:02 2008
@@ -32,14 +32,14 @@
 public class Tracer implements InterceptStrategy {
 
     private TraceFormatter formatter = new TraceFormatter();
-    private boolean isEnabled = true;
+    private boolean enabled = true;
     /**
      * A helper method to return the Tracer instance for a given {@link CamelContext} if
one is enabled
      *
      * @param context the camel context the debugger is connected to
      * @return the debugger or null if none can be found
      */
-    public static Tracer getDebugger(CamelContext context) {
+    public static Tracer getTracer(CamelContext context) {
         if (context instanceof DefaultCamelContext) {
             DefaultCamelContext defaultCamelContext = (DefaultCamelContext) context;
             List<InterceptStrategy> list = defaultCamelContext.getInterceptStrategies();
@@ -67,11 +67,11 @@
         this.formatter = formatter;
     }
 
-    public void setEnabled(boolean enabled) {
-        isEnabled = enabled;
+    public void setEnabled(boolean flag) {
+        enabled = flag;
     }
 
     public boolean isEnabled() {
-        return isEnabled;
+        return enabled;
     }
 }
\ No newline at end of file



Mime
View raw message