Re: [T5.3] Contributing a Service Override using addInstance()

2012-03-06 Thread Steve Eynon
e method (and related RegistrtyImpl support) would make the >> replacement hide behind the original service's id and >> ServiceProxyToken. >> >> >>> >>> How far out am I here? >>> >>> >>> -Original Message- >>> Fr

Re: [T5.3] Contributing a Service Override using addInstance()

2012-02-27 Thread Howard Lewis Ship
(and related RegistrtyImpl support) would make the > replacement hide behind the original service's id and > ServiceProxyToken. > > >> >> How far out am I here? >> >> >> -Original Message- >> From: Blower, Andy [mailto:andy.blo...@proquest

Re: [T5.3] Contributing a Service Override using addInstance()

2012-02-27 Thread Howard Lewis Ship
ements seem > quite unusual. If it would be useful to other Tapestry users then maybe. > > Thanks for the reply Howard. > > -Original Message----- > From: Howard Lewis Ship [mailto:hls...@gmail.com] > Sent: 21 February 2012 19:51 > To: Tapestry users > Subject: Re

RE: [T5.3] Contributing a Service Override using addInstance()

2012-02-24 Thread Blower, Andy
al Message- From: Blower, Andy [mailto:andy.blo...@proquest.co.uk] Sent: 22 February 2012 17:35 To: Tapestry users Subject: RE: [T5.3] Contributing a Service Override using addInstance() Yes that works! I had no idea you could do such a thing as I'd not see it anywhere in the documentation.

RE: [T5.3] Contributing a Service Override using addInstance()

2012-02-22 Thread Blower, Andy
ply Howard. -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 21 February 2012 19:51 To: Tapestry users Subject: Re: [T5.3] Contributing a Service Override using addInstance() This might work: @Contribute(ServiceOverride.class) public static void setupApplicationServic

Re: [T5.3] Contributing a Service Override using addInstance()

2012-02-21 Thread Howard Lewis Ship
injections and is not practical to > change them. > > > -Original Message- > From: Steve Eynon [mailto:steve.ey...@alienfactory.co.uk] > Sent: 21 February 2012 10:36 > To: Tapestry users > Subject: Re: [T5.3] Contributing a Service Override using addInstance()

RE: [T5.3] Contributing a Service Override using addInstance()

2012-02-21 Thread Blower, Andy
where we have plain injections and is not practical to change them. -Original Message- From: Steve Eynon [mailto:steve.ey...@alienfactory.co.uk] Sent: 21 February 2012 10:36 To: Tapestry users Subject: Re: [T5.3] Contributing a Service Override using addInstance() Hi, I'm not really sure w

Re: [T5.3] Contributing a Service Override using addInstance()

2012-02-21 Thread Steve Eynon
Hi, I'm not really sure what's going on as the two classes you mention, ValidatingMappedConfigurationWrapper & AbstractConfigurationImpl, don't appear in your code snippet. If you define your overriding service as an Interface (say in the bind() method) then T5 will create a proxy for it. public

RE: [T5.3] Contributing a Service Override using addInstance()

2012-02-20 Thread Blower, Andy
I managed to get this to work by tracking down all dependencies and finding that one was being used in the services' constructor. Once I moved the initialisation code into a lazy init method I stopped getting the exceptions. Unfortunately, I still have an issue because when using addInstance() T