Clement Escoffier (JIRA) wrote:
[ http://issues.apache.org/jira/browse/FELIX-91?page=all ]
Clement Escoffier updated FELIX-91:
-----------------------------------
...
Now, you can configure array property by using the following format :
<property field="m_myArrayField" name="myProperty.myArray" value="{foo, bar}"/>
A cool feature could be a general-purpose parser to parser the value
string and instanciate from it Object or array of Object
For instance (108.16.10.2, 108.16.10.10 and many others),
<property
field="m_myProducerFlavor"
name="wireadmin.producer.flavors"
value="{org.osgi.util.measurement.Measurement, java.lang.Double}"
parser="fr.imag.osgi.ipojo.wireadmin.ClassArrayParser"
/>
public class ClassArrayParser {
public ClassArrayParser(String value) { ... }
public Class[] newInstance() { ... }
}
The parser class could be dynamically load !
Didier
...
--
---------------------------------------------------------
Didier DONSEZ
Laboratoire LSR, Institut Imag, Universite Joseph Fourier
Bat. C, 220 rue de la Chimie, Domaine Universitaire
BP 53, 38041 Grenoble Cedex 9, France
GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m
Tel : +33 4 76 63 55 49 Fax : +33 4 76 63 55 50
mailto:[EMAIL PROTECTED]
URL: http://www-adele.imag.fr/~donsez
---------------------------------------------------------