Re: Re: T5 Module methods call

View: New views
1 Messages — Rating Filter:   Alert me  

Re: Re: T5 Module methods call

by nille hammer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,
> TapestryModule.class, part of Tapestry, defines an IgnoredPathsFilteer  
> service inside method bind(), so there's no need to define it again. ;)
I have missed that. Thanks Thiago for putting that correct.
Regards, nillehammer

----- original Nachricht --------

Betreff: Re: T5 Module methods call
Gesendet: Mo, 29. Jun 2009
Von: Thiago H. de Paula Figueiredo<thiagohp@...>

> 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@...
>
>

--- original Nachricht Ende ----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...