org.objectweb.jonathan.apis.kernel.decoders
Interface Properties2Configuration

All Known Implementing Classes:
PropertiesDecoder

public interface Properties2Configuration


Method Summary
 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.
 

Method Detail

importProperties

void importProperties(Context _configuration,
                      java.util.Properties _props,
                      java.lang.String[] _except,
                      boolean _force)
                      throws JonathanException
Imports the provided properties into the _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.

Parameters:
_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.
Throws:
JonathanException

importProperty

void importProperty(Context _context,
                    java.lang.String _name,
                    java.lang.String _value,
                    boolean _force)
                    throws JonathanException
Imports the provided property into the _context.

Parameters:
_context - the context to import the property to;
_name - the property name
_value - the property value
force - indicates whether an already existing element should be replaced or not.
Throws:
JonathanException