Thanks! On 7/7/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
1) Define your service interface 2) Provide an implementation 3) Inside your AppModule, update the bind() method, i.e. public static void bind(ServiceBinder binder) { binder.bind(MyInterface.class, MyImpl.class); } 4) Inject it into your component: @Inject private MyInterface _myService; That covers most simple services with normal dependencies. There's a large number of more involved solutions, but for normal stuff, that's just about it. Services are not components, they don't hot reload. Change AppModule or any of the rest and you need to restart. On 7/6/07, Ben Acker <[EMAIL PROTECTED]> wrote: > Howdy! > > Being somewhat of a T5 noob, I have had troubles getting explicit directions > on how to create a service in T5. > > I'm positive that it is simple, I just can't find anything that says > anything explicitly in the mailing lists, documentation, etc. > > If anyone has the time, please let me know where I need to throw in my > annotations and where to throw the service (probably mypackage.services, > with AppModule) > > Thanks in advance! > > -Ben > > PS - A link to any documentation would be more than adequate, and I really > appreciate any help! > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]