org.apache.camel.impl
Class ConfigurationHelper

java.lang.Object
  extended by org.apache.camel.impl.ConfigurationHelper

public final class ConfigurationHelper
extends Object

Some helper methods for working with EndpointConfiguration instances


Nested Class Summary
static class ConfigurationHelper.FieldParameterSetter
           
static interface ConfigurationHelper.ParameterSetter
           
 
Method Summary
static EndpointConfiguration createConfiguration(String uri, CamelContext context)
           
static Field findConfigurationField(EndpointConfiguration config, String name)
           
static Object getConfigurationParameter(EndpointConfiguration config, Field field)
           
static Object getConfigurationParameter(EndpointConfiguration config, String name)
           
static void populateFromURI(CamelContext camelContext, EndpointConfiguration config, ConfigurationHelper.ParameterSetter setter)
           
static
<T> void
setConfigurationField(CamelContext camelContext, EndpointConfiguration config, String name, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createConfiguration

public static EndpointConfiguration createConfiguration(String uri,
                                                        CamelContext context)
                                                 throws Exception
Throws:
Exception

populateFromURI

public static void populateFromURI(CamelContext camelContext,
                                   EndpointConfiguration config,
                                   ConfigurationHelper.ParameterSetter setter)

findConfigurationField

public static Field findConfigurationField(EndpointConfiguration config,
                                           String name)

getConfigurationParameter

public static Object getConfigurationParameter(EndpointConfiguration config,
                                               String name)

getConfigurationParameter

public static Object getConfigurationParameter(EndpointConfiguration config,
                                               Field field)

setConfigurationField

public static <T> void setConfigurationField(CamelContext camelContext,
                                             EndpointConfiguration config,
                                             String name,
                                             T value)


Apache CAMEL