On Thu, 01 Dec 2011 10:10:37 -0200, Blower, Andy <andy.blo...@proquest.co.uk> wrote:

Thanks for the reply Thiago, but I have no idea what you mean. Sorry if I'm being dumb.. ;-)

Something like this (not tested):

public interface Service { }

public class ControllingServiceImpl implements ControllingService {
        public ControllingServiceImpl(List<Service> services) {
                ...
        }
}

AppModule:

public static void bind(ServiceBinder binder) {
        binder.bind(ControllingService.class, ControllingServiceImpl.class);
        binder.bind(ServiceImpl1.class);
        binder.bind(ServiceImpl2.class);
        binder.bind(ServiceImpl3.class);
}

public static void contributeControllingService(OrderedConfiguration<Service> configuration, ServiceImpl1 impl1, ServiceImpl2 impl2, ServiceImpl3 impl3) {
        configuration.add("ServiceImpl1", impl1);
        configuration.add("ServiceImpl2", impl2);
        configuration.add("ServiceImpl3", impl3);
}

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, 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