@ApplicationScoped public class GeocoderProducers extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
googleApiKey |
| Constructor and Description |
|---|
GeocoderProducers() |
| Modifier and Type | Method and Description |
|---|---|
(package private) org.apache.camel.component.geocoder.GeoCoderComponent |
geocoderComponent(org.apache.camel.CamelContext camelContext,
MockApiService mockApiService)
We need to implement some conditional configuration of the
GeoCoderComponent thus we create it
programmatically and publish via CDI. |
String googleApiKey
@Produces
@ApplicationScoped
@Named(value="geocoder")
org.apache.camel.component.geocoder.GeoCoderComponent geocoderComponent(org.apache.camel.CamelContext camelContext,
MockApiService mockApiService)
throws IllegalAccessException,
NoSuchFieldException,
InstantiationException
GeoCoderComponent thus we create it
programmatically and publish via CDI.GeoCoderComponentIllegalAccessExceptionNoSuchFieldExceptionInstantiationExceptionCopyright © 2019–2020 The Apache Software Foundation. All rights reserved.