Hi Milorad,

Welcome to this list!

I would recommend to have a base abstract class with the generic behavior
and several subclasses adding the specific aspects. You would then attach
the subclasses to your router. 

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel




-----Message d'origine-----
De : Milorad [mailto:[email protected]] 
Envoyé : lundi 12 septembre 2011 21:37
À : [email protected]
Objet : router.attach generic resource

Hi, this is my first post.
First, i would like to say hello to the whole community.
My problem is next:
In my restlet project I have a number of resource classes (Restlet 1.1)
which basically do the same thing but with different data from database, so
I am considering creating a generic resource to which I would pass a certain
parameters (e.g. table names, etc.) and route different instances of that
class to different URIs. So is there a way to attach concrete instance of a
Resource class (object, not a class itself) to a specific URI, or some other
way of achieving this what i have intended to do?

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

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

Reply via email to