Re: Service Override Problems

2013-10-16 Thread Martin Kersten
Objects are created by a creator of a proxy. private static boolean isSupportedCreator(Object creator) { return creator instanceof JustInTimeObjectCreator || creator instanceof ReloadableServiceImplementationObjectCreator; } The creator is accessible by reading a priva

Re: Service Override Problems

2013-10-16 Thread Thiago H de Paula Figueiredo
On Wed, 16 Oct 2013 12:09:52 -0300, Alessio Gambi wrote: While ago I tried to patch directly RegistryImpl to get access to modules information and various contributions inside the modules. Unfortunately I did not managed to extract the actual contributions... My plan was to capture the m

Re: Service Override Problems

2013-10-16 Thread Alessio Gambi
While ago I tried to patch directly RegistryImpl to get access to modules information and various contributions inside the modules. Unfortunately I did not managed to extract the actual contributions... My plan was to capture the moment when an object is instantiated by the registry and copy the

Re: Service Override Problems

2013-10-16 Thread Barry Books
I did truncate it but I think the interesting thing had already happened which was the stack overflow. My plan was to just override the services I wanted the configurations for, save them into another service then just use the existing Tapestry service. Seemed simple enough because I've overridden

Re: Service Override Problems

2013-10-16 Thread Thiago H de Paula Figueiredo
On Wed, 16 Oct 2013 09:21:41 -0300, Barry Books wrote: I tried again with no success. The goal here is to gain access to the configurations being passed to various services in order to build a documentation pages listing the actual running configuration. I don't think that's possible right no

Re: Service Override Problems

2013-10-15 Thread Martin Kersten
> I'm trying to override a few Tapestry services in order to gain access to the configurations but I'm not having much luck. For example< What are you trying to achieve? 2013/10/15 Thiago H de Paula Figueiredo > On Tue, 15 Oct 2013 14:49:35 -0300, Barry Books wrote: > > It's in another modul

Re: Service Override Problems

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 14:49:35 -0300, Barry Books wrote: It's in another module. I did comment it out and it does the same thing If the EMultipartDecoder isn't declared as a service anymore, it should work or at least fail with another exception. On Tuesday, October 15, 2013, Thiago H de

Re: Service Override Problems

2013-10-15 Thread Barry Books
It's in another module. I did comment it out and it does the same thing On Tuesday, October 15, 2013, Thiago H de Paula Figueiredo wrote: > On Tue, 15 Oct 2013 08:27:55 -0300, Barry Books wrote: > > Caused by: java.lang.RuntimeException: Service interface >> org.apache.tapestry5.upload.**servi

Re: Service Override Problems

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 08:27:55 -0300, Barry Books wrote: Caused by: java.lang.RuntimeException: Service interface org.apache.tapestry5.upload.services.MultipartDecoder is matched by 2 services: EMultipartDecoder, MultipartDecoder. Where does this EMultipartDecoder service comes from? -- Thiago