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

public 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:
_props - the properties to import;
Throws:
JonathanException

importProperty

public 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
Throws:
JonathanException