hi, i need them in extern classes not pages. the injection into pages and components works well but i need to access them from other classes.
-----Ursprüngliche Nachricht----- Von: news im Auftrag von Kent Tong Gesendet: Mi 21.09.2005 12:39 An: [email protected] Betreff: Re: external use of hivemind services -----Ursprüngliche Nachricht----- Von: news im Auftrag von Kent Tong Gesendet: Mi 21.09.2005 12:39 An: [email protected] Betreff: Re: external use of hivemind services Simon Buettner <simon.buettner <at> froebus.de> writes: > > Hi, > i have my Hibernate SessionFactory installed as an application wide tapestry.state.ApplicationObjects. > How can other Objects that can not use the <at> Inject Annotations access this service? > > The Objects are in the application, but they are not direct in a page or component. Turn them into hivemind services. This way, when constructing the services, use auto-wiring or use <set-service> inside <construct>. Then inject them into your pages or components. -- Author of a book for learning Tapestry (www.agileskills2.org/EWDT) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
