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

Reply via email to