Not Spring...but I used a Finder to inject mine with Guice - it only
required extending Finder and overriding one method:

        public GuiceFinder(Context context, Class<?> targetClass) {
                super(context, targetClass);
        }

        @Override
        public ServerResource create(Class<? extends ServerResource>
targetClass, Request request, Response response) {
                return InjectorFactory.getInjector().getInstance(targetClass);
        }

Larry


On Tue, Jul 20, 2010 at 9:58 AM, Richard Brewster
<[email protected]> wrote:
> I really need help getting this to work.  The examples I've found refer to a
> restlet Resource, which is deprecated.  For example:
>
> http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/196-restlet.html
>
> I think I need to use RestletFrameworkServlet.  But I have not found a good
> example.
>
> --
> View this message in context: 
> http://restlet-discuss.1400322.n2.nabble.com/How-to-inject-a-Spring-bean-service-into-a-Restlet-component-tp5314211p5317233.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2635832
>

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

Reply via email to