public abstract class Props extends Object
Properties
instance with custom or default values to be passed
to any sub-system that requires a Map or Properties instance of properties and values.
Note some Props sub-classes have static accessors. It is recommended the fluent instance methods be used instead
of the static methods. All static accessors may be deprecated in future versions.Constructor and Description |
---|
Props() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addPropertiesTo(Properties properties) |
Properties |
buildProperties()
Method buildProperties returns a new
Properties instance with all property values for this type. |
Properties |
buildProperties(Iterable<Map.Entry<String,String>> defaultProperties)
Method buildProperties returns a new
Properties instance with all property values for this type
using the given Iterable |
Properties |
buildProperties(Map<Object,Object> defaultProperties)
Method buildProperties returns a new
Properties instance with all property values for this type
using the given Map of property values as defaults. |
Properties |
buildProperties(Properties defaultProperties)
Method buildProperties returns a new
Properties instance with all property values for this type
using the given Properties instance of property values as defaults. |
ConfigDef |
setProperties(ConfigDef configDef) |
ConfigDef |
setProperties(ConfigDef configDef,
ConfigDef.Mode mode) |
public Props()
public Properties buildProperties()
Properties
instance with all property values for this type.
If no values have been set, all default properties and values will be returned.public Properties buildProperties(Map<Object,Object> defaultProperties)
Properties
instance with all property values for this type
using the given Map of property values as defaults. The given Map will not be modified.
If no values have been set, all default properties and values will be returned.public Properties buildProperties(Iterable<Map.Entry<String,String>> defaultProperties)
Properties
instance with all property values for this type
using the given Iterablepublic Properties buildProperties(Properties defaultProperties)
Properties
instance with all property values for this type
using the given Properties instance of property values as defaults. The given Map will not be modified.
If no values have been set, all default properties and values will be returned.public ConfigDef setProperties(ConfigDef configDef)
public ConfigDef setProperties(ConfigDef configDef, ConfigDef.Mode mode)
protected abstract void addPropertiesTo(Properties properties)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.