I should probably give you more detail as to what I'm trying to do. I use your Hibernate repositories approach. And I need to create an interceptor for Hibernate to do some file clean up. So I needed a way to get repository access in the interceptor. Now that I think of it I should probably create a interceptor service and inject it into my Hibernate session factory config and then let HiveMind insert the repositories I need. Does that sound good?
James Carman wrote: > You can create a service implementation factory which injects the > contributing module into your service implementation. From there, you can > lookup stuff in the registry. Refer to an example here: > > http://www.carmanconsulting.com/svn/public/tapernate-example/trunk/src/java/ > org/apache/tapestry/enhance/HiveMindAutowireWorkerFactory.java > > > -----Original Message----- > From: Stanczak Group [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 30, 2006 2:57 AM > To: Tapestry users > Subject: Access Registry > > I have a service and I would like to have HiveMind autowire the Registry > into it. What how do I do this. I've tried just providing a set method > like I do with all the services I've created, but it doesn't work. What > is it called? I'd like to set something that I could use to lookup other > services. What I'm going to do is set the Registry in one of the objects > this service creates so it can lookup services it needs. > > -- Justin Stanczak Stanczak Group 812-735-3600 "All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke ..________...............__................. ./ _____/..____..._____/..|_..____...____.... /...\..____/.__.\./....\...__\/.._.\./._..\.... \....\_\..\..___/|...|..\..|.(..<_>.|.<_>..).... .\______../\___.._\__|../__|..\____/.\____/...... ........\/.....\/.....\/.......................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]