On Thu, Aug 1, 2013 at 11:48 AM, Erin Noe-Payne <[email protected]>wrote:
> On Thu, Aug 1, 2013 at 2:46 PM, Chris Geer <[email protected]> wrote: > > On Thu, Aug 1, 2013 at 10:57 AM, Erin Noe-Payne < > [email protected]>wrote: > > > >> Hey all, quick question about how to configure service injection - > >> > >> If you update trunk and take a look at DefaultRegionWidgetsResource, > >> you will see that the class has a static pageService property. The > >> issue I am having is that the pageService is not being injected, so it > >> is always null. > >> > >> Can anyone advise or point me at a resource to read up on how this > >> injection works? > >> > > > > I can't help you with the injection, but you can keep it simple and just > > pass in the services in the XML. Nice, clean and no magic. > > > > As long as it gets there. I'll check it out, thanks. > for example from the cxf xml <bean id="categoriesBean" class="org.apache.rave.rest.impl.DefaultCategoriesResource"> <property name="categoryService" ref="defaultCategoryService"/> <property name="userService" ref="userService"/> </bean> > > >> > >> Thanks, > >> Erin > >> >
