camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r620840 - /activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java
Date Tue, 12 Feb 2008 16:07:03 GMT
Author: jstrachan
Date: Tue Feb 12 08:07:02 2008
New Revision: 620840

URL: http://svn.apache.org/viewvc?rev=620840&view=rev
Log:
added a hook to make it easier to post-process the CamelContext when reusing the Main

Modified:
    activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java

Modified: activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java?rev=620840&r1=620839&r2=620840&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java
(original)
+++ activemq/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/Main.java
Tue Feb 12 08:07:02 2008
@@ -320,12 +320,16 @@
     }
 
     protected void postProcessContext() throws Exception {
+        CamelContext camelContext = SpringCamelContext.springCamelContext(applicationContext);
         if (ObjectHelper.isNotNullAndNonEmpty(dotOutputDir)) {
             RouteDotGenerator generator = new RouteDotGenerator(dotOutputDir);
-            CamelContext camelContext = SpringCamelContext.springCamelContext(applicationContext);
             LOG.info("Generating DOT file for routes: " + dotOutputDir + " for: " + camelContext);
             generator.drawRoutes(camelContext);
         }
+        postProcesCamelContext(camelContext);
+    }
+
+    protected void postProcesCamelContext(CamelContext camelContext) {
     }
 
     protected String getVersion() {



Mime
View raw message