Hey Hendy,

Sorry for not being able to make it to an answer earlier :-(

On Sun, Nov 18, 2012 at 7:21 AM, Hendy Irawan <[email protected]> wrote:
> This is my attempt:
> https://github.com/soluvas/soluvas-web/commit/ef81705fd6ad4f69e75b247ac2dc6d387487eb97
>
> So far it seems to work... Do I need to do anything else to account for Pax
> Wicket, or there's needs to be some support in Pax Wicket itself?

your approach basically looks pretty fine; although the pax-wicket
does a little bit more magic. This might also explains some of your
class loader issues we've discussed earlier. PaxWicketBean also
handles some pretty nasty edge cases quite well using delegated class
loading which should avoid your dynamic import problem.

> I reused JSR330 @Inject, but use our own qualifiers (@Namespace, @Filter,
> @Supplied) because we have our own conventions regarding OSGi service
> properties.
>
> In the future, my hope is that one day this will transition nicely (i.e. no
> change to Components) into Pax CDI/weld-osgi when they are finalized, so
> I'll reimplement the hook for these when the time comes. (and hopefully Pax
> Wicket will also support them)

Yeah well... pax wicket will support what we all make it support. So,
if you have some cycles left I might be able to make some free too and
we can work together on getting this into pax-wicket :-)

Kind regards,
Andreas

>
> Hendy
>
>
> On Fri, Nov 16, 2012 at 7:29 PM, Andreas Pieber <[email protected]> wrote:
>>
>> Hey,
>>
>> 1) do you want to use/implement JSR330 OR something custom?
>> 2) It's not really possible doing this as a simple hook-in; you would
>> rather need to provide your own injection mechanism
>> 3) BUT if basically all you want is JSR330 we can come up with
>> something; I'm not a big fan of @PaxWicketBean (it's name) anyhow...
>>
>> Kind regards,
>> Andreas
>>
>> On Thu, Nov 15, 2012 at 6:19 AM, Hendy Irawan <[email protected]> wrote:
>> > Hi all,
>> >
>> > Currently we use a subclass of WebPage which provides the injection upon
>> > constructor and uninjects during onRemove(), finalize(). But this is
>> > problematic.
>> >
>> > Our injection looks like following:
>> >
>> > @Inject @Namespaced("product") @Filtered("(repositoryMode=normal)")
>> > private ImageRepository productImageRepo;
>> > @Inject @Supplied @Filtered("(layer=application)")
>> > private Banner banner;
>> >
>> > Is it possible to hook into the Pax Wicket serialization mechanism (like
>> > @PaxWicketBean does) so that the injection is performed on
>> > deserialization
>> > and uninjection is performed on serialization? And this will work for
>> > all
>> > components, not just specially crafted Pages.
>> >
>> > Thank you.
>> >
>> > --
>> > Hendy Irawan - on Twitter - on LinkedIn
>> > Web Developer | Bippo Indonesia | Akselerator Bisnis | Bandung
>> >
>> >
>> > _______________________________________________
>> > general mailing list
>> > [email protected]
>> > http://lists.ops4j.org/mailman/listinfo/general
>> >
>>
>> _______________________________________________
>> general mailing list
>> [email protected]
>> http://lists.ops4j.org/mailman/listinfo/general
>
>
>
>
> --
> Hendy Irawan - on Twitter - on LinkedIn
> Web Developer | Bippo Indonesia | Akselerator Bisnis | Bandung
>
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to