Re: [nbdev] Inject Project Re: Re: JSR330 in NetBeans?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [nbdev] Inject Project Re: Re: JSR330 in NetBeans?

Thomas.Schneider.Wien
Hello Jaroslav,

*and all++

I'm closing to close these Projets, very soon ...

Thomas Schneider

See you at the upcoming REXXLA meeting ther in Almere :-)
www.REXXLA.org
=========================================================
Am 19.11.2010 07:32, schrieb Jaroslav Tulach:

> Dne pátek 12 listopadu 2010 18:43:33 Michael Nascimento napsal(a):
>> I personally liked his @Inject @Current Project example. It might be
>> useful for things like that (yeah, Logger is useless).
> We can probably inject Project into constructor of Actions that deal with
> projects, as we do for
> http://bits.netbeans.org/dev/javadoc/org-openide-
> awt/org/openide/awt/Actions.html#context(java.lang.Class, boolean, boolean,
> org.openide.util.ContextAwareAction, java.lang.String, java.lang.String,
> java.lang.String, boolean)
> but where else we could inject it!?
>
> -jt
>
>> On Thu, Nov 11, 2010 at 5:24 AM, Jaroslav Tulach
>>
>> <[hidden email]>  wrote:
>>> Hi.
>>> Hantsy reported me
>>> https://netbeans.org/bugzilla/show_bug.cgi?id=191705
>>> and wants me to find a way to use the @Inject and @Resource annotations
>>> in NetBeans Platform.
>>>
>>> I have to admit I was thinking about JSR330 too, but the code samples as
>>> shown at https://netbeans.org/bugzilla/attachment.cgi?id=102891
>>> and in other presentation referenced from the bug are not really
>>> convincing.
>>>
>>> I really don't understand what is so cool on Logger field being injected.
>>> Sane people call Logger.getLogger themselves. Injecting context (aka
>>> Lookup) is fine and we do it for @ActionRegistration, but I don't
>>> understand where else this could be useful.
>>>
>>> Can I close
>>> https://netbeans.org/bugzilla/show_bug.cgi?id=191705
>>> as won'tfix then?
>>>
>>> -jt


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com
www.thsitc.com
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)