On Wed, 05 May 2010 22:50:00 +0200, MauricioF <mauricio.fara...@ioko.com> wrote:

Ideally I´d like to register in my module a new implementation of 
PageTemplateLocator
Any other idea how can I do this? (If you think override PageTemplateLocator
is not the right thing..)

Thanks

Yes, that's what you need to do. You can override built-in services by adding a 
contribution to ServiceOverride:

http://tapestry.apache.org/tapestry5.1/tapestry-ioc/cookbook/override.html


In your case I believe it would look something like this:

public static void contributeServiceOverride(MappedConfiguration<Class, Object> 
configuration)
{
  configuration.add(PageTemplateLocator.class, new MyOwnImplementation(...));
}

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

Reply via email to