Author: davsclaus
Date: Wed Oct 8 12:19:04 2008
New Revision: 702971
URL: http://svn.apache.org/viewvc?rev=702971&view=rev
Log:
CAMEL-969: setRoutes is considered for @deprecation.
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java?rev=702971&r1=702970&r2=702971&view=diff
==============================================================================
---
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java
(original)
+++
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/CamelContext.java
Wed Oct 8 12:19:04 2008
@@ -205,7 +205,9 @@
* Sets the routes for this context, replacing any current routes
*
* @param routes the new routes to use
+ * @deprecated is considered for deprecation, use addRoutes instead, could
be removed in Camel 2.0
*/
+ @Deprecated
void setRoutes(List<Route> routes);
/**
@@ -282,7 +284,10 @@
Language resolveLanguage(String language);
/**
- * Creates a new ProducerTemplate
+ * Creates a new ProducerTemplate.
+ * <p/>
+ * See this FAQ before use: <a
href="http://activemq.apache.org/camel/why-does-camel-use-too-many-threads-with-producertemplate.html">
+ * Why does Camel use too many threads with ProducerTemplate?</a>
*
* @return the template
*/