Re: Unable to inject Protoype beans into a singleton bean via for a Spring Router

2009-10-05 Thread Rhett Sutphin
Hi Infinity, On Oct 5, 2009, at 9:58 AM, infinity wrote: > Looking at the code in SpringRouter.setAttachments(), it looks like > the > default implementation can not handle prototype spring beans. SpringRouter can't directly handle spring-configured resource instances. You want either Sprin

Re: Unable to inject Protoype beans into a singleton bean via for a Spring Router

2009-10-05 Thread infinity
Looking at the code in SpringRouter.setAttachments(), it looks like the default implementation can not handle prototype spring beans. if (value instanceof Restlet) { router.attach(key, (Restlet) value); } else if (value instanceof Class) { router.attach(key, (Class) value); } e