Thanks Thiago, I got it working. Thanks a lot!! :)
- Ashwanth Kumar On Tue, Jan 26, 2010 at 4:00 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jan 2010 05:10:56 -0200, Ashwanth Kumar < > ashwanth.ku...@gmail.com> wrote: > > Hello, >> > > Hi! > > > I'm now, trying to do a desktop client for which i need some CRUD actions, >> and since, being a user of Tapestry, i thought i could use Tapestry IoC >> standalone for my app. Can anyone provide me some light on using Tapestry >> IoC, on an offline app. >> > > Tapestry-IoC works exactly the same with or without Tapestry. In your case, > you just need to start the Registry yourself. It's documented here: > http://tapestry.apache.org/tapestry5.1/tapestry-ioc/run.html. To load > modules from the classpath and add them to your RegistryBuilder, just call > IOCUtilities.addDefaultModules(builder);. > > Simple example: > > > RegistryBuilder builder = new RegistryBuilder(); > builder.add(ModuleClass1.class, ModuleClass2.class); > IOCUtilities.addDefaultModules(builder); > final Registry registry = builder.build(); > > SomeService service = registry.getService(SomeService.class); > > -- > 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 > >