No, that does not work. When I try to inject the Request object as a method 
parameter, the application won't start. An Exception is thrown on startup:
2013-09-22 20:40:30,689 ERROR ServiceOverride:64 - Construction of service 
ServiceOverride failed: Error invoking service contribution method 
de.bodenkurier.web.site.services.AppModule.contributeServiceOverride(MappedConfiguration,
 Request): Exception constructing service 'ServiceOverride': Construction of 
service 'ServiceOverride' has failed due to recursion: the service depends on 
itself in some way. Please check 
org.apache.tapestry5.ioc.internal.services.ServiceOverrideImpl(Map) (at 
ServiceOverrideImpl.java:31) via 
org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at 
TapestryIOCModule.java:49) for references to another service that is itself 
dependent on service 'ServiceOverride'.
…
...


Am 22.09.2013 um 20:05 schrieb "Ville Virtanen" 
<ville.virta...@orientimport.fi>:

> 
>    public static void contributeServiceOverride(final
> MappedConfiguration<Class,Object> configuration, final Request request) {
>        BaseURLSource source = new  BaseURLSource()
>    {
>         ...
>    
>        configuration.add(BaseURLSource.class, source);
>    }
> 
> Ville


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to