Hi,

IMO that's the needed case (at least to start): make cdi friendly legacy
libs
Le 12 oct. 2012 08:38, "Mark Struberg" <[email protected]> a écrit :

> well, there is an important distinction between creating new beans for
> classes which are in a BDA and others who don't.
>
> In CDI-1.0 it's not defined what happens if you do
> BeforeBeanDiscovery#addAnnotatedType for a class which is already in a BDA
> and would get picked up automatically. Some containers treat them as new
> bean information, others as default for the existing one. This only gets
> specified in CDI-1.1 where we also have a new event
> ProcessSyntheticAnnotatedType (or so).
>
> Thus I recommend allowing to add annotatedTypes but only for classes which
> are not in a BDA (in other words: they are in a jar without a beans.xml).
>
> Stu, Shane, what do you think about that solution? That should cover the
> most important use cases. All features beyond that are not portable in
> CDI-1.0.
>
> LieGrue,
> strub
>
>
>
>
> ----- Original Message -----
> > From: Shane Bryzak <[email protected]>
> > To: [email protected]
> > Cc: Jason Porter <[email protected]>; Mark Struberg <
> [email protected]>
> > Sent: Friday, October 12, 2012 1:01 AM
> > Subject: Re: Seam XML config
> >
> > I think we have to support creation of new beans.  Take a look at [1],
> > which is a blog post on configuring Drools within Spring.  A little way
> > down, under the sessions.xml heading he has an example showing a Drools
> > configuration.  We need to be able to support the same kind of
> > configuration with CDI.
> >
> > On 12/10/12 08:00, Jason Porter wrote:
> >>  Great! Thanks Mark. Nothing really complicated here. I think the big
> >>  question now, is being able to actually create new beans using the
> config,
> >>  or if we simply want to modify existing beans. For me personally I'm -1
> > on
> >>  creating beans using config and +1 on modifying existing beans.
> >>
> >>  On Thu, Oct 11, 2012 at 3:22 PM, Mark Struberg <[email protected]>
> > wrote:
> >>
> >>>  sure, check the readme:
> >>>  https://github.com/struberg/InterDyn
> >>>
> >>>  LieGrue,
> >>>  strub
> >>>
> >>>
> >>>
> >>>
> >>>  ----- Original Message -----
> >>>>  From: Jason Porter <[email protected]>
> >>>>  To: [email protected]
> >>>>  Cc:
> >>>>  Sent: Thursday, October 11, 2012 10:58 PM
> >>>>  Subject: Re: Seam XML config
> >>>>
> >>>>  Mark, do you have an example for InterDyn (or whatever it's
> > called?)
> >>>>
> >>>>  We also need to decide if we're going to allow creation of new
> > beans or
> >>>>  simply configure existing beans (adding / removing metadata) using
> > this
> >>>>  configuration.
> >>>>
> >>>>  On Fri, Sep 28, 2012 at 9:54 AM, Pete Muir <[email protected]>
> > wrote:
> >>>>
> >>>>>    Original inspiration for xml came from Gavin's design for
> > CDI 1.0. I
> >>>>  don't
> >>>>>    know more details about why they went this direction.
> >>>>>
> >>>>>    On 25 Sep 2012, at 00:19, Jason Porter wrote:
> >>>>>
> >>>>>    > It did (maybe it still does), but at some point we
> > decided that
> >>>>  wasn't
> >>>>>    > recommended, I don't recall why though, perhaps
> > Stuart or Pete
> >>>>  remembers.
> >>>>>    >
> >>>>>    > On Mon, Sep 24, 2012 at 5:11 PM, Romain Manni-Bucau
> >>>>>    > <[email protected]>wrote:
> >>>>>    >
> >>>>>    >> each time i read this kind of conf i think it should
> > be the
> >>>>  opposite
> >>>>>    >>
> >>>>>    >> why not extending beans.xml (just in the spirit, not
> > in the same
> >>>>  file)
> >>>>>    >> adding <qualfiiers> etc?
> >>>>>    >>
> >>>>>    >>
> >>>>>    >> *Romain Manni-Bucau*
> >>>>>    >> *Twitter: @rmannibucau*
> >>>>>    >> *Blog: **http://rmannibucau.wordpress.com/*<
> >>>>>    >> http://rmannibucau.wordpress.com/>
> >>>>>    >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>>>>    >>
> >>>>>    >>
> >>>>>    >>
> >>>>>    >>
> >>>>>    >> 2012/9/25 Jason Porter
> > <[email protected]>
> >>>>>    >>
> >>>>>    >>> I'm going to send probably the most
> > comprehensive example
> >>>>  that exists
> >>>>>    >> about
> >>>>>    >>> what Seam XML can do:
> >>>>>    >>>
> >>>>>    >>>
> >>>>>    >>>
> >>>>>    >>
> >>>>>
> >>>
> >
> https://github.com/seam/config/blob/develop/examples/princess-rescue/src/main/resources/META-INF/seam-beans.xml
> >>>>>    >>>
> >>>>>    >>> You can also find the Java classes that back
> > that config at
> >>>>>    >>>
> >>>>>    >>>
> >>>>>    >>
> >>>>>
> >>>
> >
> https://github.com/seam/examples/tree/master/princess-rescue/src/main/java/org/jboss/seam/examples/princessrescue
> >>>>>    >>>
> >>>>>    >>> Mark, could you give some examples of the stuff
> > you would like
> >>>>  to see
> >>>>>    as
> >>>>>    >>> well?
> >>>>>    >>>
> >>>>>    >>> --
> >>>>>    >>> Jason Porter
> >>>>>    >>> http://lightguard-jp.blogspot.com
> >>>>>    >>> http://twitter.com/lightguardjp
> >>>>>    >>>
> >>>>>    >>> Software Engineer
> >>>>>    >>> Open Source Advocate
> >>>>>    >>> Author of Seam Catch - Next Generation Java
> > Exception Handling
> >>>>>    >>>
> >>>>>    >>> PGP key id: 926CCFF5
> >>>>>    >>> PGP key available at: keyserver.net, pgp.mit.edu
> >>>>>    >>>
> >>>>>    >>
> >>>>>    >
> >>>>>    >
> >>>>>    >
> >>>>>    > --
> >>>>>    > Jason Porter
> >>>>>    > http://lightguard-jp.blogspot.com
> >>>>>    > http://twitter.com/lightguardjp
> >>>>>    >
> >>>>>    > Software Engineer
> >>>>>    > Open Source Advocate
> >>>>>    > Author of Seam Catch - Next Generation Java Exception
> > Handling
> >>>>>    >
> >>>>>    > PGP key id: 926CCFF5
> >>>>>    > PGP key available at: keyserver.net, pgp.mit.edu
> >>>>>
> >>>>>
> >>>>
> >>>>  --
> >>>>  Jason Porter
> >>>>  http://lightguard-jp.blogspot.com
> >>>>  http://twitter.com/lightguardjp
> >>>>
> >>>>  Software Engineer
> >>>>  Open Source Advocate
> >>>>  Author of Seam Catch - Next Generation Java Exception Handling
> >>>>
> >>>>  PGP key id: 926CCFF5
> >>>>  PGP key available at: keyserver.net, pgp.mit.edu
> >>>>
> >>
> >>
> >
>

Reply via email to