Hello Thierry,

thanks a lot for your (as usual) prompt and accurate answer.

I guess I can live with this small nuance until 2.1 is rock-solid and
ready to become the new stable branch.

My pleasure to be of help.

a bientot.

On Wed, Feb 9, 2011 at 8:40 AM, Thierry Boileau
<[email protected]> wrote:
> Hello Fabian,
>
> we consider this situation a little bit annoying as you accurately point,
> but transitional. The 2.1 trunk fixes that by making the TemplateRoute class
> a subclass of the (no more deprecated) Route class.
> We are aware this not very confortable, but for now, we are not enclined to
> change the API of the 2.0 stable release.
>
> I hope this is not too bad for you, we are still open and listening to your
> remarks.
>
> Thanks a lot for your dedication and support,
> Thierry Boileau
>
>> Hello there,
>>
>> I'm using Restlet 2.0.4 JSE, and am trying to modify my application
>> routes dynamically, according to the presence or not of classes in the
>> classpath (if an extension class is present, then I need that class to
>> handle a given route, instead of the 'base' class). While on this
>> quest, I've realized that the add(index, Route) method of RouteList
>> doesn't 'like' a TemplateRoute as 2nd param. Since Route is
>> deprecated, RouteList should also accept TemplateRoutes. If this is
>> not possible, maybe it's time to wrap TemplateRoute on a
>> TemplateRouteList class.
>>
>> For now, I've made the following:
>>
>> routes.add(index, (Route)theRoute);
>>
>> and ignore the deprecation warning.
>>
>> Thanks in advance for fixing this.
>>
>> --
>> Fabián Mandelbaum
>> IS Engineer
>>
>> ------------------------------------------------------
>>
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2702888
>
>



-- 
Fabián Mandelbaum
IS Engineer

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2702995

Reply via email to