<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/xmlconfig/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/xmlconfig/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/xmlconfig/feature-requests/</id><updated>2004-09-17T11:27:35Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Variable substitution/reference for primitive types</title><link href="https://sourceforge.net/p/xmlconfig/feature-requests/1/" rel="alternate"/><published>2004-09-17T11:27:35Z</published><updated>2004-09-17T11:27:35Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net7f29b7e6bec60890d9c7b6d3f2721ed1e74baf2c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The improved typing of propreties in v2.0 is great but&lt;br /&gt;
it has introduced one, in my opinion, annoying feature:&lt;br /&gt;
variable referencing or substitution for primitive types.&lt;/p&gt;
&lt;p&gt;The problem:&lt;/p&gt;
&lt;p&gt;Let's say I denife a port number property as &amp;lt;int&amp;gt;&lt;br /&gt;
type. Later in the configuration file I would like to&lt;br /&gt;
use that property for a bean that would take it as a&lt;br /&gt;
primitive int attribute for constructor or method.&lt;br /&gt;
Currently, there is no way to do that. Should I try to&lt;br /&gt;
reference the property with &amp;lt;alias&amp;gt; there is no way to&lt;br /&gt;
cast the wrapper object to the needed primitive type.&lt;br /&gt;
On the other hand, I can't use the property for&lt;br /&gt;
variable substitution because that is apparently only&lt;br /&gt;
supported for string properties.&lt;/p&gt;
&lt;p&gt;I see three possible solutions:&lt;/p&gt;
&lt;p&gt;1) adding primitive types to attribute type casting,&lt;/p&gt;
&lt;p&gt;2) changing variable substitution to allow any type of&lt;br /&gt;
object, and/or&lt;/p&gt;
&lt;p&gt;3) adding true support of primitive types to XmlConfig.&lt;/p&gt;
&lt;p&gt;Thanks and best wishes,&lt;/p&gt;
&lt;p&gt;Arto Hallanaro&lt;br /&gt;
arto.hallanaro@iki.fi&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>