Author: jstrachan
Date: Mon Sep  3 14:43:48 2012
New Revision: 1380255

URL: http://svn.apache.org/viewvc?rev=1380255&view=rev
Log:
added better javadoc

Modified:
    camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/Uri.java

Modified: 
camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/Uri.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/Uri.java?rev=1380255&r1=1380254&r2=1380255&view=diff
==============================================================================
--- 
camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/Uri.java 
(original)
+++ 
camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/cdi/Uri.java 
Mon Sep  3 14:43:48 2012
@@ -23,7 +23,19 @@ import java.lang.annotation.Target;
 
 /**
  * An injection annotation to define the <a 
href="http://camel.apache.org/uris.html";>Camel URI</a> used
- * to reference the underlying <a 
href="http://camel.apache.org/endpoint.html";>Camel Endpoint</a>
+ * to reference the underlying <a 
href="http://camel.apache.org/endpoint.html";>Camel Endpoint</a>.
+ *
+ * This annotation can be used to annotate an @Inject injection point for 
values of type
+ * {@link org.apache.camel.Endpoint} or {@link 
org.apache.camel.ProducerTemplate} with a String URI.
+ *
+ * For example:
+ * <code>
+ *     public class Foo {
+ *         @Inject @Uri("mock:foo") Endpoint endpoint;
+ *
+ *         @Inject @Uri("seda:bar") ProducerTemplate producer;
+ *     }
+ * </code>
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, 
ElementType.PARAMETER})


Reply via email to