Re: Guards through Spring
Great, thanks Rhett! I just tried overriding it to include the Guards, but I get an exception from the SpringBeanFinder's createResource() method, so some more tweaking will be needed. I'll put in a ticket for it. Cheers, Dustin Rhett Sutphin wrote: > Hi Dustin, > > >> I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that >> it only picks up those URLs that are tied to a Resource, and not a >> Guard. Would it be appropriate to simply override the >> postProcessBeanFactory() method to look for Guards too? Would this be >> considered a bug/issue or is there another way of attaching Guards >> through Spring? >> > > I'd consider that an issue. Can you file a bug? It would be fairly > straightforward to extend SpringBeanRouter to handle attaching Guards > (and Filters, and any other Restlets) in a similar way to how it > handles Resources. > > Note that, since SpringBeanRouter can only handle attaching things to > itself, if you have multiple Resources behind your Guard, you'll have > to figure out some other way to set up those routes. > > Rhett > > On Apr 15, 2009, at 12:46 PM, Dustin N. Jenkins wrote: > > >> I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that >> it only picks up those URLs that are tied to a Resource, and not a >> Guard. Would it be appropriate to simply override the >> postProcessBeanFactory() method to look for Guards too? Would this be >> considered a bug/issue or is there another way of attaching Guards >> through Spring? >> >> Thanks! >> Dustin >> -- >> >> >> Dustin N. Jenkins | Tel/Tél: 250.363.3101 | dustin.jenk...@nrc-cnrc.gc.ca >> >> facsimile/télécopieur: (250) 363-0045 >> >> National Research Council Canada | 5071 West Saanich Rd, Victoria BC. >> V9E 2E7 >> >> Conseil national de recherches Canada | 5071, ch. West Saanich, >> Victoria >> (C.-B) V9E 2E7 >> >> Government of Canada | Gouvernement du Canada >> >> -- >> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1730566 >> > > -- > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1730917 > -- Dustin N. Jenkins | Tel/Tél: 250.363.3101 | dustin.jenk...@nrc-cnrc.gc.ca facsimile/télécopieur: (250) 363-0045 National Research Council Canada | 5071 West Saanich Rd, Victoria BC. V9E 2E7 Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria (C.-B) V9E 2E7 Government of Canada | Gouvernement du Canada -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1731107
Re: Guards through Spring
Hi Dustin, > I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that > it only picks up those URLs that are tied to a Resource, and not a > Guard. Would it be appropriate to simply override the > postProcessBeanFactory() method to look for Guards too? Would this be > considered a bug/issue or is there another way of attaching Guards > through Spring? I'd consider that an issue. Can you file a bug? It would be fairly straightforward to extend SpringBeanRouter to handle attaching Guards (and Filters, and any other Restlets) in a similar way to how it handles Resources. Note that, since SpringBeanRouter can only handle attaching things to itself, if you have multiple Resources behind your Guard, you'll have to figure out some other way to set up those routes. Rhett On Apr 15, 2009, at 12:46 PM, Dustin N. Jenkins wrote: > I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that > it only picks up those URLs that are tied to a Resource, and not a > Guard. Would it be appropriate to simply override the > postProcessBeanFactory() method to look for Guards too? Would this be > considered a bug/issue or is there another way of attaching Guards > through Spring? > > Thanks! > Dustin > -- > > > Dustin N. Jenkins | Tel/Tél: 250.363.3101 | dustin.jenk...@nrc-cnrc.gc.ca > > facsimile/télécopieur: (250) 363-0045 > > National Research Council Canada | 5071 West Saanich Rd, Victoria BC. > V9E 2E7 > > Conseil national de recherches Canada | 5071, ch. West Saanich, > Victoria > (C.-B) V9E 2E7 > > Government of Canada | Gouvernement du Canada > > -- > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1730566 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1730917
Guards through Spring
I'm using Restlet 1.2 with the SpringBeanRouter, but I've noticed that it only picks up those URLs that are tied to a Resource, and not a Guard. Would it be appropriate to simply override the postProcessBeanFactory() method to look for Guards too? Would this be considered a bug/issue or is there another way of attaching Guards through Spring? Thanks! Dustin -- Dustin N. Jenkins | Tel/Tél: 250.363.3101 | dustin.jenk...@nrc-cnrc.gc.ca facsimile/télécopieur: (250) 363-0045 National Research Council Canada | 5071 West Saanich Rd, Victoria BC. V9E 2E7 Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria (C.-B) V9E 2E7 Government of Canada | Gouvernement du Canada -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1730566