Re: @Produces inside jar

2017-11-27 Thread Romain Manni-Bucau
No but you can tune it with beans.xml (excludes, scanning mode, etc...) Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:57 GMT+01:00 Matthew Broadhead : > should i somehow be manually defining which beans are cdi managed? > > > On 27/11/2017 10:48, Romain Man

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
should i somehow be manually defining which beans are cdi managed? On 27/11/2017 10:48, Romain Manni-Bucau wrote: all i guess, System.out.println(beanManager.getBeans(Object.class)) should list them Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:31 GMT+0

Re: @Produces inside jar

2017-11-27 Thread Romain Manni-Bucau
all i guess, System.out.println(beanManager.getBeans(Object.class)) should list them Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:31 GMT+01:00 Matthew Broadhead : > yes that works. does that mean all classes are being added as cdi for some > reason? or

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
yes that works.  does that mean all classes are being added as cdi for some reason?  or only ones that are being produced? On 27/11/2017 10:25, Romain Manni-Bucau wrote: hmm there is not link with serializable but if it is a cdi bean then producing it will make it ambiguous add @vetoed on the

Re: @Produces inside jar

2017-11-27 Thread Romain Manni-Bucau
hmm there is not link with serializable but if it is a cdi bean then producing it will make it ambiguous add @vetoed on the class maybe? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:24 GMT+01:00 Matthew Broadhead : > should not be serializable? > > > On 2

Re: @Produces inside jar

2017-11-27 Thread Matthew Broadhead
should not be serializable? On 27/11/2017 10:17, Romain Manni-Bucau wrote: No but likely MyCustomObject is scanned and has a default constructor Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:00 GMT+01:00 Matthew Broadhead : If I include a jar in several

Re: @Produces inside jar

2017-11-27 Thread Romain Manni-Bucau
No but likely MyCustomObject is scanned and has a default constructor Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-11-27 10:00 GMT+01:00 Matthew Broadhead : > If I include a jar in several webapps and the jar contains some > @ApplicationScoped beans it seems to wor

@Produces inside jar

2017-11-27 Thread Matthew Broadhead
If I include a jar in several webapps and the jar contains some @ApplicationScoped beans it seems to work fine.  i.e. those @ApplicationScoped beans can be injected into the beans in the webapps without conflict. However if I use @Produces, e.g @Produces @MyQualifier @RequestScoped public MyCu