On Sat, 30 Jan 2010 13:09:05 -0200, Nicolas Bouillon <nico...@bouil.org> wrote:

Hi,

Hi!

I've tried to ovveride the URLEncoderImpl.java using :
binder.bind(URLEncoder.class, MyURLEncoderImpl.class).withId("MyURLEncoderImpl");

This doesn't override a service, just adds another implementation. To actually override a service, you need to contribute to the ServiceOverrides service:

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

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to