Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 74348 invoked from network); 16 Mar 2006 13:50:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Mar 2006 13:50:52 -0000 Received: (qmail 91035 invoked by uid 500); 16 Mar 2006 13:50:48 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 90566 invoked by uid 500); 16 Mar 2006 13:50:46 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 90555 invoked by uid 99); 16 Mar 2006 13:50:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:50:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.74.29] (HELO mxmail3.porsche.co.at) (193.109.74.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2006 05:50:45 -0800 In-Reply-To: <7c6c1dd90603160511k5d048e14vdcfbcc628c6f1ff@mail.gmail.com> Subject: Antwort: POJO dependency injection (with interface) into TAP4 application To: "Tapestry users" X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Kristian Marinkovic Date: Thu, 16 Mar 2006 14:50:13 +0100 X-MIMETrack: Serialize by Router on MailZ1/Szg/PorscheInt(Release 6.5.4|March 27, 2005) at 16.03.2006 14:50:14 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Received-SPF: none X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi Adam, @InjectState("sessionDAO") public abstract ISessionDAO getSessionDAO(); works fine too; i'm using it with tapestry-spring "Adam Zimowski" An "Tapestry users" 16.03.2006 14:11 Kopie Bitte antworten Thema an POJO dependency injection (with "Tapestry users" interface) into TAP4 application Hi there, I'd like to inject my DAOs from Hivemind as an interface such that my app is not aware of implementation. I only know I can do this: Then, in my class I'd do: @InjectState("sessionDAO") public abstract SessionDAO getSessionDAO(); I have a few problems with this: 1) I'd like to inject an interface ISessionDAO, not the concrete implementation. 2) Question: will Hivemind give me a singleton? I don't want my DAO's be a bunch of short lived objects. I'd like to be sure they are singletons. I think they are because the scope is application, but I'm not sure. 3) I'd like to be able to inject it to other POJOs, not just Tapestry derived objects (pages, components, etc). I probably could use Registry object, but I really prefer to do this with annotations? They are so elegant.. Does Hivemind has annotation support ? As always, I appreciate your help up front. Regards, Adam --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org