Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 37748 invoked from network); 2 Jul 2008 18:04:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 18:04:31 -0000 Received: (qmail 91229 invoked by uid 500); 2 Jul 2008 18:04:29 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 91095 invoked by uid 500); 2 Jul 2008 18:04:29 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 91074 invoked by uid 99); 2 Jul 2008 18:04:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 11:04:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.58] (HELO smtp103.prem.mail.sp1.yahoo.com) (98.136.44.58) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jul 2008 18:03:37 +0000 Received: (qmail 92654 invoked from network); 2 Jul 2008 18:02:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=pA6w1p0onxUmc/gXGI4ROl/hBmSbqeiPkDg0wplNsyID5KZqrgwOjo5JbrOoT0dii7osqeQ54M3LC2tvktE6KY620bl6qC19La2GkApuMNtGRYjMy9niOlQH1ZbE+EW5W3DrcTEQ2FvaSi2tJhplXNj/b9YxFQlIMlIjIFV62g8= ; Received: from unknown (HELO ?10.11.55.10?) (david_jencks@63.105.20.225 with plain) by smtp103.prem.mail.sp1.yahoo.com with SMTP; 2 Jul 2008 18:02:57 -0000 X-YMail-OSG: 5Nrrv4oVM1nQvi0KvMdNSUqfoFSAq0rBNCQdjSeb6SWmawpRmaAUHAXL6e_seQQGi7j9s25hegQp_jT5hJK782rhJwl1rDtVvh9mMw9HYJrOvZgQv_oK6QbHVMmUA9rSXLE- X-Yahoo-Newman-Property: ymail-3 Message-Id: From: David Jencks To: "Tomcat Developers List" In-Reply-To: <96e4b5230806290943w204f5a90pab61aae7115e51a1@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: InstanceManager javadoc Date: Wed, 2 Jul 2008 11:02:55 -0700 References: <96e4b5230806281026y14ccd395kf750fb235c8df164@mail.gmail.com> <96e4b5230806290943w204f5a90pab61aae7115e51a1@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Jun 29, 2008, at 9:43 AM, Costin Manolache wrote: > Also, is there any documentation (or anyone who can explain) > DefaultInstanceManager.processAnnotations() ? > > Sorry, I'm a bit confused, lots of calls and structures. > > I'm interested in particular in the 'injectionMap' - from what I > read, the > method takes the name of the > field ( say 'foo' ), and even if it has no annotations it'll still > inject it > if something named 'foo' is found. > The injectionMap would have something like "foo"->"jndiNameForFoo". > > This seems pretty dangerous - my understanding was that you need to > have an > annotation in order to > have the Resource injected. you can also set up injections via web.xml. Even without this how is this dangerous? The injection map isn't supplied by user code but by server code. I'm not sure if the standalone tomcat annotation support actually does anything. I wrote it to mimic the functionality of the original standalone support (which again IIRC didn't appear to connect to anything useful) when getting annotation/injection support to work in a way useful to geronimo. Geronimo uses xbean-reflect to handle object creation and configuration which is a very elegant solution IMO. I'll try to find some time to remind myself of how this works and comment on it.... but it may be a while. thanks david jencks > > > I'll try searching the mail archives - the comments in the submits > don't > seem to have more info than the javadocs or > comments... Again, sorry if it's something obvious. > > Costin > > > On Sat, Jun 28, 2008 at 10:26 AM, Costin Manolache > wrote: > >> Hi, >> >> Just one small 'feature' request: >> >> Since InstanceManager in tomcat6 is in such a package ( org.apache >> - do we >> even have permission to use this ??), >> could we have some javadocs ? >> >> What are the current plans for the annotation processing / dep >> injection ? >> Is this class the 'root' of all future >> annotation processing ? >> >> Costin >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org