deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler
Date Wed, 26 Dec 2012 20:59:45 GMT
hi john,

as mentioned before:

> @ InvocationHandler as a separated bean (at runtime):
> currently i can't see a benefit for DELTASPIKE-60.

regards,
gerhard



2012/12/26 John D. Ament <john.d.ament@gmail.com>

> Gerhard,
>
> Just so I'm clear, when I was referring to the current implementation, it
> was the one shipped with Seam3/Solder:
>
> https://github.com/seam/solder/tree/develop/impl/src/main/java/org/jboss/solder/serviceHandler
>
> It does look like we're doing something very similar by veto'ing the
> handler classes.
>
>         else if (InvocationHandler.class.isAssignableFrom(beanClass))
>         {
>             validateInvocationHandler(beanClass, bindingAnnotationClass);
>
>             this.partialBeanHandlers.put(bindingAnnotationClass,
> (Class<? extends InvocationHandler>) beanClass);
>             pat.veto();
>         }
>
> I believe as a result, we have to do what you're doing in
> PartialBeanLifecycle.create (line 75) to manually create the instance.
>  If we just let the scopes handle the scopes whether this is a new
> instance or an existing instance should resolve itself more naturally.
>
>
>
> On Wed, Dec 26, 2012 at 2:06 PM, John D. Ament <john.d.ament@gmail.com
> >wrote:
>
> > Gerhard,
> >
> > I apologize, I hadn't realized you implemented this feature, considering
> > it has been assigned to me.
> >
> > John
> >
> >
> > On Wed, Dec 26, 2012 at 1:56 PM, Gerhard Petracek <
> > gerhard.petracek@gmail.com> wrote:
> >
> >> hi john,
> >>
> >> that can't be - the described example (/excerpt) is a copy of a working
> >> example (tested with owb and weld).
> >>
> >> the only use-case (we have so far) which can't be implemented with std.
> >> cdi
> >> mechanisms (due to abstract classes) is DELTASPIKE-60.
> >>
> >> @ InvocationHandler as a separated bean (at runtime):
> >> currently i can't see a benefit for DELTASPIKE-60.
> >>
> >> regards,
> >> gerhard
> >>
> >>
> >>
> >> 2012/12/26 John D. Ament <john.d.ament@gmail.com>
> >>
> >> > but the
> >> > specific one annotated a certain way.  The cleanest way (conceptual
> >> >
> >>
> >
> >
>

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