Em Mon, 29 Jun 2009 16:15:51 -0300, nille hammer
<
tapestry.nillehammer@...> escreveu:
> Hi Haipeng,
Hi everyone!
>> but this one is not called:
>> public static void contributeIgnoredPathsFilter(Configuration<String>
>> configuration)
I don't know if that's your problem, but this method will only be called
when the first request is received. Tapestry-IoC, by default, just create
services when they're first needed.
> The contribution method is called by a builder method for a service that
> accepts your configuration as method parameter. I assume you want to
> build a service that implements "RequestFilter". So do you have sth.
> like the following in your module class?
>
> public RequestFilter buildIgnoredPathsFilter(final Collection<String>
> contributions) {
> return new IgnoredPathsFilter(contributions);
> }
TapestryModule.class, part of Tapestry, defines an IgnoredPathsFilteer
service inside method bind(), so there's no need to define it again. ;)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...