org.objectweb.jonathan.apis.kernel.decoders
Interface Properties2Configuration
- PropertiesDecoder
public interface Properties2Configuration
Jonathan: an Open Distributed Processing Environment
Copyright (C) 2001 Kelua SA
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: jonathan@objectweb.org
Author: Bruno Dumant
--------------------------------------------------------------------------
$Id: Properties2Configuration.java,v 1.1.1.1 2002/08/06 13:13:47 bmi Exp $
--------------------------------------------------------------------------
void | importProperties(Context _configuration, Properties _props, String[] _except, boolean _force) - Imports the provided properties into the
_context .
|
void | importProperty(Context _context, String _name, String _value, boolean _force) - Imports the provided property into the
_context .
|
importProperties
public void importProperties(Context _configuration,
Properties _props,
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:
- an integer, in which case it is considered as an int;
- an boolean, in which case it is considered as an Boolean;
- a float, in which case it is considered as an Float;
except
specifies a list of property keys prefixes
corresponding to keys that should not be imported into the context.
_props
- the properties to import;
importProperty
public void importProperty(Context _context,
String _name,
String _value,
boolean _force)
throws JonathanException
Imports the provided property into the _context
.
_context
- the context to import the property to;_name
- the property name_value
- the property value