Package org.apache.camel.main
Class MainHelper
- java.lang.Object
-
- org.apache.camel.main.MainHelper
-
public final class MainHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description MainHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponentEnvVariables(Map<String,String> env, Properties properties, boolean custom)voidaddDataFormatEnvVariables(Map<String,String> env, Properties properties, boolean custom)voidaddLanguageEnvVariables(Map<String,String> env, Properties properties, boolean custom)voidbootstrapDone()static voidcomputeProperties(String keyPrefix, String key, Properties prop, Map<org.apache.camel.main.PropertyOptionKey,Map<String,Object>> properties, Function<String,Iterable<Object>> supplier)static Map<String,String>filterEnvVariables(String[] prefixes)static booleanisServiceEnabled(String prefix, String name, Properties properties)static PropertiesloadEnvironmentVariablesAsProperties(String[] prefixes)static PropertiesloadJvmSystemPropertiesAsProperties(String[] prefixes)static Optional<String>lookupPropertyFromSysOrEnv(String name)static StringoptionKey(String key)static booleansetPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Object source)static booleansetPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Map<String,Object> properties, String optionPrefix, boolean failIfNotSet, boolean ignoreCase, Map<String,String> autoConfiguredProperties)static StringtoEnvVar(String name)static voidvalidateOptionAndValue(String key, String option, String value)
-
-
-
Method Detail
-
bootstrapDone
public void bootstrapDone()
-
loadEnvironmentVariablesAsProperties
public static Properties loadEnvironmentVariablesAsProperties(String[] prefixes)
-
addComponentEnvVariables
public void addComponentEnvVariables(Map<String,String> env, Properties properties, boolean custom)
-
addDataFormatEnvVariables
public void addDataFormatEnvVariables(Map<String,String> env, Properties properties, boolean custom)
-
addLanguageEnvVariables
public void addLanguageEnvVariables(Map<String,String> env, Properties properties, boolean custom)
-
loadJvmSystemPropertiesAsProperties
public static Properties loadJvmSystemPropertiesAsProperties(String[] prefixes)
-
setPropertiesOnTarget
public static boolean setPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Object source) throws Exception- Throws:
Exception
-
setPropertiesOnTarget
public static boolean setPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Map<String,Object> properties, String optionPrefix, boolean failIfNotSet, boolean ignoreCase, Map<String,String> autoConfiguredProperties)
-
computeProperties
public static void computeProperties(String keyPrefix, String key, Properties prop, Map<org.apache.camel.main.PropertyOptionKey,Map<String,Object>> properties, Function<String,Iterable<Object>> supplier)
-
isServiceEnabled
public static boolean isServiceEnabled(String prefix, String name, Properties properties)
-
-