camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-10411 - Fixed CS
Date Tue, 25 Oct 2016 06:55:30 GMT
Repository: camel
Updated Branches:
  refs/heads/master bf8d0de57 -> f389ccf23


CAMEL-10411 - Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f389ccf2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f389ccf2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f389ccf2

Branch: refs/heads/master
Commit: f389ccf23e5919ead1f27667800ddfc7922f4215
Parents: bf8d0de
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Oct 25 08:55:02 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Oct 25 08:55:02 2016 +0200

----------------------------------------------------------------------
 .../org/apache/camel/blueprint/BlueprintCamelContext.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f389ccf2/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
----------------------------------------------------------------------
diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
index 865328a..dd87dae 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
@@ -53,10 +53,11 @@ public class BlueprintCamelContext extends DefaultCamelContext implements
Servic
 
     private static final Logger LOG = LoggerFactory.getLogger(BlueprintCamelContext.class);
     
+    protected final AtomicBoolean routeDefinitionValid = new AtomicBoolean(true);
+
     private BundleContext bundleContext;
     private BlueprintContainer blueprintContainer;
     private ServiceRegistration<?> registration;
-    protected final AtomicBoolean routeDefinitionValid = new AtomicBoolean(true);
 
     public BlueprintCamelContext() {
     }
@@ -186,10 +187,9 @@ public class BlueprintCamelContext extends DefaultCamelContext implements
Servic
             // let's set a more suitable TCCL while starting the context
             Thread.currentThread().setContextClassLoader(getApplicationContextClassLoader());
             super.start();
-        } catch (FailedToCreateRouteException e){
+        } catch (FailedToCreateRouteException e) {
             routeDefinitionValid.set(false);
-        }
-        finally {
+        } finally {
             Thread.currentThread().setContextClassLoader(original);
         }
     }
@@ -197,7 +197,7 @@ public class BlueprintCamelContext extends DefaultCamelContext implements
Servic
     private void maybeStart() throws Exception {
         LOG.trace("maybeStart: {}", this);
 
-        if(!routeDefinitionValid.get()){
+        if (!routeDefinitionValid.get()) {
             LOG.trace("maybeStart: {} is skipping since CamelRoute definition is not correct.",
this);
             return;
         }


Mime
View raw message