ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Is DynamicConfigurate slated to be made namespace-aware?
Date Wed, 19 May 2004 14:02:37 GMT
Wascally Wabbit wrote:

> At 04:06 AM 5/19/2004, you wrote:
>
>> DynamicConfigurator is NS unaware.
>> (This was for BC reasons, in ant1.6betaX).
>>
>> There is work in progress to make
>> a DynamicConfiguratorNS  -
>> see:
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=28426
>>
>> One question:
>> should the interface give the ns prefix or the qualified name,
>> ie:
>>      Object createDynamicElement(
>>        String uri, String prefix, String localName) throws 
>> BuildException;
>>
>> or
>>
>>  Object createDynamicElement(
>>        String uri, String qualifiedName, String localName) throws 
>> BuildException;
>>
>> The second form may be more useful for talking to Dom.
>>
>> Peter
>
>
>
> I think the second form can also be passed directly into
> ComponentHelper's various APIs without a side call to
> 'genComponentName'. So the second form gets my vote...
>
>
This is not unfortunately correct.
The component name has the "uri" and not the ns prefix,
so one would still need to do genComponentName(uri, localName)

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message