Thanks for the TYPO Thiago. Also thanks for the project examples, I'll need to wait beeing at home to test since the security system here at the office block them to be download.
Making my ClassA a service? I'm going to try but it means ClassA will be instanciate only by Tapestry-ioc else I will not have my ServiceClassB instance (imagine a ClassC needs an instance of ClassA and doesn't care about services, will I have to make ClassC also a service??). And what about a custom ServiceFactory singleton class that call the Registry to get instances and/or be a sort of Global Service referenced in Tapestry-Ioc? Again, to create a Service is not a problem, my problem is to call them from layers without the @Inject which work only from tapestry-core but without making a link between the layer and tapestry-ioc. The only link I wish is between tapestry-ioc and layers in this order. ioc knows the layers, but the layers don't know the ioc, only the service. Still reading the documentation... 2007/12/17, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]>: > > On Mon, 17 Dec 2007 08:33:52 -0200, Michael Bernagou > <[EMAIL PROTECTED]> wrote: > > > public class UserModule { > > public static ServiceClassB build(ServiceUserDao userDao){ > > ClassB cb = new ClassB(userDao); > > return cb; > > } > > > > public static ServiceUserDao build() { > > UserDao dao = new UserDao(); > > return dao; > > } > > } > > > > But I still don't know how to implement ClassA to get my ServiceClassB > > instance provided by the IoC. > > 1) Rename your build() method to buildServiceUserDao. > > 2) Your ClassA builder method would be something like that: > > public static ClassA buildClassA(ServiceClassB serviceClassB) { > ServiceClassB object = new ServiceClassBImplementation(); > object.setServiceClassB(serviceClassB); > return object; > } > > -- > Thiago H. de Paula Figueiredo > Desenvolvedor, Instrutor e Consultor de Tecnologia > Eteg Tecnologia da Informação Ltda. > http://www.eteg.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Michael Bernagou Java Developper