public class FlumeBeanConfigurator extends Object
| Constructor and Description | 
|---|
FlumeBeanConfigurator()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
setConfigurationFields(Object configurable,
                      Context context)
Utility method that will set properties on a Java bean ( 
Object configurable)
 based on the provided Context. | 
static void | 
setConfigurationFields(Object configurable,
                      Context context,
                      String subPropertiesPrefix)
Utility method that will set properties on a Java bean ( 
Object configurable)
 based on the provided Context. | 
static void | 
setConfigurationFields(Object configurable,
                      Map<String,String> properties)
Utility method that will set properties on a Java bean ( 
Object configurable)
 based on the provided properties bundle. | 
public static void setConfigurationFields(Object configurable, Map<String,String> properties) throws ConfigurationException
Object configurable)
 based on the provided properties bundle.
 If there is a type issue, or an access problem
 then a ConfigurationException will be thrown.configurable - Any properties must be modifiable via setter methods.properties - Map<String, String>ConfigurationExceptionpublic static void setConfigurationFields(Object configurable, Context context) throws ConfigurationException
Object configurable)
 based on the provided Context.
 N.B. This method will take the Flume Context and look for sub-properties named after the
 class name of the configurable object.
 If there is a type issue, or an access problem
 then a ConfigurationException will be thrown.configurable - Any properties must be modifiable via setter methods.context - ConfigurationExceptionpublic static void setConfigurationFields(Object configurable, Context context, String subPropertiesPrefix) throws ConfigurationException
Object configurable)
 based on the provided Context.
 N.B. This method will take the Flume Context and look for sub-properties named after the
 subPropertiesPrefix String.
 If there is a type issue, or an access problem
 then a ConfigurationException will be thrown.configurable - Object: Any properties must be modifiable via setter methods.context - org.apache.flume.Context;subPropertiesPrefix - StringConfigurationExceptionCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.