Package org.apache.camel.main
Class MainHelper
java.lang.Object
org.apache.camel.main.MainHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponentEnvVariables(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) voidstatic voidcomputeProperties(String keyPrefix, String key, org.apache.camel.util.OrderedLocationProperties prop, Map<org.apache.camel.main.PropertyOptionKey, org.apache.camel.util.OrderedLocationProperties> properties, Function<String, Iterable<Object>> supplier) static org.apache.camel.util.OrderedLocationPropertiesextractProperties(org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix) static org.apache.camel.util.OrderedLocationPropertiesextractProperties(org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix, String optionSuffix) static org.apache.camel.util.OrderedLocationPropertiesextractProperties(org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix, String optionSuffix, boolean remove) static org.apache.camel.util.OrderedLocationPropertiesextractProperties(org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix, String optionSuffix, boolean remove, Function<String, String> keyTransformer) filterEnvVariables(String[] prefixes) static booleanisServiceEnabled(String prefix, String name, Properties properties) static PropertiesloadEnvironmentVariablesAsProperties(String[] prefixes) static PropertiesloadJvmSystemPropertiesAsProperties(String[] prefixes) static Stringstatic booleansetPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Object source) static booleansetPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix, boolean failIfNotSet, boolean ignoreCase, org.apache.camel.util.OrderedLocationProperties autoConfiguredProperties) static Stringstatic voidvalidateOptionAndValue(String key, String option, String value)
-
Constructor Details
-
MainHelper
public MainHelper()
-
-
Method Details
-
getVersion
-
getUptime
-
bootstrapDone
public void bootstrapDone() -
toEnvVar
-
lookupPropertyFromSysOrEnv
-
loadEnvironmentVariablesAsProperties
-
filterEnvVariables
-
addComponentEnvVariables
-
addDataFormatEnvVariables
public void addDataFormatEnvVariables(Map<String, String> env, Properties properties, boolean custom) -
addLanguageEnvVariables
-
loadJvmSystemPropertiesAsProperties
-
optionKey
-
setPropertiesOnTarget
public static boolean setPropertiesOnTarget(org.apache.camel.CamelContext context, Object target, Object source) throws Exception - Throws:
Exception
-
setPropertiesOnTarget
-
computeProperties
-
isServiceEnabled
-
validateOptionAndValue
-
extractProperties
public static org.apache.camel.util.OrderedLocationProperties extractProperties(org.apache.camel.util.OrderedLocationProperties properties, String optionPrefix) -
extractProperties
-
extractProperties
-
extractProperties
-