tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Costin Manolache" <cos...@gmail.com>
Subject Re: InstanceManager javadoc
Date Sun, 29 Jun 2008 20:55:02 GMT
Thanks - my interest is not so much on history, more on what are the plans
for this, is it a 'stable/frozen' API,
and if so - some javadocs to clarify how to use/implement it.

My goal is to add annotations to tomcat-lite - and also just understand the
implementation.
For example the injection of non-annotated fields - what is the intention,
is it based on any spec -
or I'm just not understanding the code ?

I want to try a more pluggable mechanism ( in sandbox - no worry :-) - i.e.
callbacks when
 each 'object of interest' is created (which can also hook into JMX and
maybe other
frameworks like guice/spring/etc), more extensible annotation support, etc.

The package name is the other big question - I didn't know we ( or geronimo
) could use org.apache
for our classes. But moving it would probably break stuff outside of tomcat
- and I assume the intention
is to share it.

Costin

On Sun, Jun 29, 2008 at 10:45 AM, Filip Hanik - Dev Lists <
devlists@hanik.com> wrote:

> here's some history on package etc
>
> http://tomcat.markmail.org/search/?q=InstanceManager
>
> Filip
>
> 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.
>>
>> 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 <costin@gmail.com>
>> 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
>>>
>>>
>>>
>>
>>  ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG. Version: 7.5.526 / Virus Database: 270.4.3/1524 - Release
>> Date: 6/28/2008 7:42 PM
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message