Annotation Type Uri


@Qualifier @Retention(RUNTIME) @Target({TYPE,METHOD,FIELD,PARAMETER}) public @interface Uri
A CDI qualifier to define the Camel URI associated to the annotated resource. This annotation can be used to annotate an @Inject injection point for values of type Endpoint or ProducerTemplate. For example:
 
 @Inject
 @Uri("mock:foo")
 Endpoint endpoint;

 @Inject
 @Uri("seda:bar")
 ProducerTemplate producer;
 
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the Camel URI of the resource.
  • Element Details