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

2012-03-06 Thread Steve Eynon
hide behind the original service's id and ServiceProxyToken. How far out am I here? -Original 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

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

2012-02-27 Thread Howard Lewis Ship
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: [T5.3] Contributing a Service Override using addInstance() This might work:  @Contribute(ServiceOverride.class)  public static void

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

2012-02-27 Thread Howard Lewis Ship
? -Original 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

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

2012-02-24 Thread Blower, Andy
- 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. I don't know

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

2012-02-22 Thread Blower, Andy
. -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 setupApplicationServiceOverrides

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-21 Thread Blower, Andy
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 what's going on as the two

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

2012-02-21 Thread Howard Lewis Ship
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 what's going on as the two classes you mention

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()