@Qualifier @Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD,PARAMETER}) public @interface Uri
@Inject
injection point for
values of type Endpoint
or ProducerTemplate
. For example:
@Inject
@Uri("mock:foo")
Endpoint endpoint;
@Inject
@Uri("seda:bar")
ProducerTemplate producer;
Modifier and Type | Required Element and Description |
---|---|
String |
value
Returns the Camel URI of the resource.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
context
Deprecated.
Use the
ContextName qualifier to specify the name of the CamelContext instead:
|
@Deprecated public abstract String context
ContextName
qualifier to specify the name of the CamelContext
instead:
@Inject
@ContextName("foo")
@Uri("seda:bar")
Endpoint endpoint;
CamelContext
to use to resolve the Camel resource for this URI.Apache Camel