camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r761514 - in /camel/trunk/examples/camel-example-spring-javaconfig: pom.xml src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java
Date Fri, 03 Apr 2009 03:59:18 GMT
Author: ningjiang
Date: Fri Apr  3 03:59:17 2009
New Revision: 761514

URL: http://svn.apache.org/viewvc?rev=761514&view=rev
Log:
Added the snippet tags into the camel-example-spring-javaconfig

Modified:
    camel/trunk/examples/camel-example-spring-javaconfig/pom.xml
    camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java

Modified: camel/trunk/examples/camel-example-spring-javaconfig/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-javaconfig/pom.xml?rev=761514&r1=761513&r2=761514&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-spring-javaconfig/pom.xml (original)
+++ camel/trunk/examples/camel-example-spring-javaconfig/pom.xml Fri Apr  3 03:59:17 2009
@@ -73,6 +73,7 @@
   </dependencies>
 
   <build>
+    <!-- START SNIPPET: example -->
     <plugins>
       <!-- Allows the routes to be run via 'mvn camel:run' -->
       <plugin>
@@ -81,11 +82,14 @@
         <version>${pom.version}</version>
         <configuration>
             <duration>5s</duration>
-            <configClasses>org.apache.camel.example.spring.javaconfig.MyRouteConfig</configClasses>
           
+            <configClasses>org.apache.camel.example.spring.javaconfig.MyRouteConfig</configClasses>
+            <!--You could set the base package directory and let spring to find the config
classes for you 
+            <basedPackages>org.apache.camel.example.spring.javaconfig</basedPackages>

+             -->            
         </configuration>
       </plugin>
     </plugins>
-
+    <!-- END SNIPPET: example -->
   </build>
 
   <reporting>

Modified: camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java?rev=761514&r1=761513&r2=761514&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java
(original)
+++ camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java
Fri Apr  3 03:59:17 2009
@@ -25,6 +25,7 @@
 import org.springframework.config.java.annotation.Bean;
 import org.springframework.config.java.annotation.Configuration;
 
+//START SNIPPET: RouteConfig
 /**
  * A simple example router from a file system to an ActiveMQ queue and then to a file system
  *
@@ -61,6 +62,7 @@
 
     @Bean
     @Override
+    // you can confige the route rule with Java DSL here
     public RouteBuilder route() {
         return new RouteBuilder() {
             public void configure() {
@@ -78,3 +80,4 @@
         };
     }
 }
+//END SNIPPET: RouteConfig
\ No newline at end of file



Mime
View raw message