Re: Type converters with Spring

2009-04-01 Thread James Strachan
2009/4/1 Martin Gilday : > It turns out my colleague didn't have the Spring @RunWith registered > with his test case.  Once that was in place then the converter worked > simply by adding @Autowired onto the required service component, and the > Injector took care of the rest. No need for Applicatio

Re: Type converters with Spring

2009-04-01 Thread Martin Gilday
n the Exchange. - Original message - From: "James Strachan" To: users@camel.apache.org Date: Tue, 31 Mar 2009 11:47:26 +0100 Subject: Re: Type converters with Spring 2009/3/31 Martin Gilday : > Thanks, we will give those a try. > > As your suggestions seem to differ

Re: Type converters with Spring

2009-03-31 Thread James Strachan
2009/3/31 Martin Gilday : > Thanks, we will give those a try. > > As your suggestions seem to differ from what I quoted I am still > interested in what the docs are referring to here > http://camel.apache.org/type-converter.html  Any ideas what it means by > plugging in an Injector?  I'll try and u

Re: Type converters with Spring

2009-03-31 Thread Claus Ibsen
@camel.apache.org > Date: Tue, 31 Mar 2009 12:04:27 +0200 > Subject: Re: Type converters with Spring > > Hi > > Or pass in Exchange as the 2nd parameter. > Using Exchange you can get hold on the CamelContext and thus the > registry as well, and do lookup for Spring beans. >

Re: Type converters with Spring

2009-03-31 Thread Martin Gilday
on is incorrect. - Original message - From: "Claus Ibsen" To: users@camel.apache.org Date: Tue, 31 Mar 2009 12:04:27 +0200 Subject: Re: Type converters with Spring Hi Or pass in Exchange as the 2nd parameter. Using Exchange you can get hold on the CamelContext and thus the regist

Re: Type converters with Spring

2009-03-31 Thread Claus Ibsen
Hi Or pass in Exchange as the 2nd parameter. Using Exchange you can get hold on the CamelContext and thus the registry as well, and do lookup for Spring beans. On Tue, Mar 31, 2009 at 12:01 PM, James Strachan wrote: > 2009/3/31 Martin Gilday : >> I'd like to have a converter which uses a Sprin

Re: Type converters with Spring

2009-03-31 Thread James Strachan
2009/3/31 Martin Gilday : > I'd like to have a converter which uses a Spring @service to do lookups. >  According to the docs "If a converter requires configuration you can > plug in an Injector interface to the DefaultTypeConverter which can > construct and inject converter objects via Spring or G

Type converters with Spring

2009-03-31 Thread Martin Gilday
I'd like to have a converter which uses a Spring @service to do lookups. According to the docs "If a converter requires configuration you can plug in an Injector interface to the DefaultTypeConverter which can construct and inject converter objects via Spring or Guice." I'm unsure what it means b