public final class ResolverHelper extends Object
ComponentResolver
,
DataFormatResolver
, etc.).Modifier and Type | Class and Description |
---|---|
static class |
ResolverHelper.LookupExceptionHandler |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FALLBACK_SUFFIX |
static String |
DATA_FORMAT_FACTORY_FALLBACK_SUFFIX |
static String |
DATA_FORMAT_FALLBACK_SUFFIX |
static String |
LANGUAGE_FALLBACK_SUFFIX |
Modifier and Type | Method and Description |
---|---|
static org.apache.camel.Component |
lookupComponentInRegistryWithFallback(org.apache.camel.CamelContext context,
String name) |
static org.apache.camel.Component |
lookupComponentInRegistryWithFallback(org.apache.camel.CamelContext context,
String name,
ResolverHelper.LookupExceptionHandler exceptionHandler) |
static org.apache.camel.spi.DataFormatFactory |
lookupDataFormatFactoryInRegistryWithFallback(org.apache.camel.CamelContext context,
String name) |
static org.apache.camel.spi.DataFormatFactory |
lookupDataFormatFactoryInRegistryWithFallback(org.apache.camel.CamelContext context,
String name,
ResolverHelper.LookupExceptionHandler exceptionHandler) |
static org.apache.camel.spi.DataFormat |
lookupDataFormatInRegistryWithFallback(org.apache.camel.CamelContext context,
String name) |
static org.apache.camel.spi.DataFormat |
lookupDataFormatInRegistryWithFallback(org.apache.camel.CamelContext context,
String name,
ResolverHelper.LookupExceptionHandler exceptionHandler) |
static org.apache.camel.spi.Language |
lookupLanguageInRegistryWithFallback(org.apache.camel.CamelContext context,
String name) |
static org.apache.camel.spi.Language |
lookupLanguageInRegistryWithFallback(org.apache.camel.CamelContext context,
String name,
ResolverHelper.LookupExceptionHandler exceptionHandler) |
static <T> Optional<T> |
resolveService(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.FactoryFinder factoryFinder,
String factoryKey,
Class<T> factoryClass)
Create an instance of the given factory.
|
static <T> Optional<T> |
resolveService(org.apache.camel.CamelContext camelContext,
String factoryKey,
Class<T> factoryClass)
Create an instance of the given factory using the default factory finder
|
static <T> Optional<T> |
resolveService(org.apache.camel.CamelContext camelContext,
String factoryPath,
String factoryKey,
Class<T> factoryClass)
Create an instance of the given factory.
|
public static final String COMPONENT_FALLBACK_SUFFIX
public static final String DATA_FORMAT_FALLBACK_SUFFIX
public static final String DATA_FORMAT_FACTORY_FALLBACK_SUFFIX
public static final String LANGUAGE_FALLBACK_SUFFIX
public static org.apache.camel.Component lookupComponentInRegistryWithFallback(org.apache.camel.CamelContext context, String name)
public static org.apache.camel.Component lookupComponentInRegistryWithFallback(org.apache.camel.CamelContext context, String name, ResolverHelper.LookupExceptionHandler exceptionHandler)
public static org.apache.camel.spi.DataFormat lookupDataFormatInRegistryWithFallback(org.apache.camel.CamelContext context, String name)
public static org.apache.camel.spi.DataFormat lookupDataFormatInRegistryWithFallback(org.apache.camel.CamelContext context, String name, ResolverHelper.LookupExceptionHandler exceptionHandler)
public static org.apache.camel.spi.DataFormatFactory lookupDataFormatFactoryInRegistryWithFallback(org.apache.camel.CamelContext context, String name)
public static org.apache.camel.spi.DataFormatFactory lookupDataFormatFactoryInRegistryWithFallback(org.apache.camel.CamelContext context, String name, ResolverHelper.LookupExceptionHandler exceptionHandler)
public static org.apache.camel.spi.Language lookupLanguageInRegistryWithFallback(org.apache.camel.CamelContext context, String name)
public static org.apache.camel.spi.Language lookupLanguageInRegistryWithFallback(org.apache.camel.CamelContext context, String name, ResolverHelper.LookupExceptionHandler exceptionHandler)
public static <T> Optional<T> resolveService(org.apache.camel.CamelContext camelContext, String factoryPath, String factoryKey, Class<T> factoryClass)
camelContext
- the CamelContext
factoryPath
- the path of the factory filefactoryKey
- the key used top lookup the factory classfactoryClass
- the type of the classpublic static <T> Optional<T> resolveService(org.apache.camel.CamelContext camelContext, String factoryKey, Class<T> factoryClass)
camelContext
- the CamelContext
factoryKey
- the key used top lookup the factory classfactoryClass
- the type of the classpublic static <T> Optional<T> resolveService(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.FactoryFinder factoryFinder, String factoryKey, Class<T> factoryClass)
camelContext
- the CamelContext
factoryFinder
- the FactoryFinder
to usefactoryKey
- the key used top lookup the factory classfactoryClass
- the type of the classApache Camel