public interface Properties2Configuration
Modifier and Type | Method and Description |
---|---|
void |
importProperties(Context _configuration,
java.util.Properties _props,
java.lang.String[] _except,
boolean _force)
Imports the provided properties into the
_context . |
void |
importProperty(Context _context,
java.lang.String _name,
java.lang.String _value,
boolean _force)
Imports the provided property into the
_context . |
void importProperties(Context _configuration, java.util.Properties _props, java.lang.String[] _except, boolean _force) throws JonathanException
_context
.
Property keys are mapped to names in the provided context, using '.' as a separator.
Property values are mapped to values of type string, except when the value may be parsed as:
except
specifies a list of property keys prefixes
corresponding to keys that should not be imported into the context.
_context
- the context to import the properties to;_props
- the properties to import;except
- prefix key prefixes corresponding to properties that should not
be imported.force
- indicates whether already existing elements should be
replaced or not.JonathanException
void importProperty(Context _context, java.lang.String _name, java.lang.String _value, boolean _force) throws JonathanException
_context
._context
- the context to import the property to;_name
- the property name_value
- the property valueforce
- indicates whether an already existing element should be
replaced or not.JonathanException