#: Christian Essl changed the world a bit at a time by saying on
10/28/2005 12:54 AM :#
> Is AOP realy needed for that?
>
> Propably I do not understand the problem but why can't you just write
a
> special Panel, Page etc which calls an overrideable
injectDependencies()
> method in the constructor. The default implementation of
> injectDependencies() does basicly read the annotations, lookup the
> services and inject them?
Because in this case the component itself does the lookup. And this is
not what you really want.
./alex
--
.w( the_mindstorm )p.
I think this way you could on an instance by
> instance basis fine-grain control what gets injected. And during
testing
> you just inject the mocks in this overriden method.
>
> Just my two cents.
>
> Thanks,
> Christian
>
> On Thu, 27 Oct 2005 21:50:02 +0200, Stefan Arentz
> <[EMAIL PROTECTED]> wrote:
>
>>
>> On Oct 27, 2005, at 9:21 PM, Sven Meier wrote:
>>>
>>> BTW rather than letting panels pull service from the page, I'd
prefer
>>> the page to push services into its panels (i.e. the page injects
>>> dependencies into its panels).
>>> I don't want my panels to be dependent on the containing page.
>>
>> Yup. That is exactly what I do.
>>
>> But. I just moved the aspect from WebPage to Component and guess
what,
>> the annotation and bean resolving works fine in Panels and
>> WebComponents too now :-)
>>
>> It is still to hackerish to use btw. There are some really nasty
delays
>> for example. I need to find some time to polish this.
>>
>> S.
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by the JBoss Inc.
>> Get Certified Today * Register for a JBoss Training Course
>> Free Certification Exam for All Training Attendees Through End of
2005
>> Visit http://www.jboss.com/services/certification for more
information
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user