Dne 23.2.2017 v 21:41 Laird Nelson napsal(a):
I haven't thought this through yet but I wonder if it would be
helpful
to mark a Bean as synthetic or not—i.e. discovered by means of the
"normal" bean discovery process, or programmatically added by a portable
extension.
I'm not sure it's worth specification. As Matej mentioned the
ProcessSyntheticBean event should do the trick.
From the impl point of view, it would be easier to mark the
"discovered" beans, ie. implement some marker interface - for synthetic
beans the container would have to wrap the provided Bean impls.
I was mentally working through what it might take to write up a sort of
CDI reporting mechanism—something that would report on what beans where
found, where they came from, what interceptors are enabled and why, etc.
etc. etc. and realized one axis of this would be whether a portable
extension was involved with certain beans or not.
Something like Weld Probe [1], cdeye [2] or VisualEE [3]?
Should I file an enhancement/feature request, or is this something that
was already debated and turned away at some point in the past?
Best,
Laird
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
Note that for all code provided on this list, the provider licenses the code under the
Apache License, Version 2 (
http://www.apache.org/licenses/LICENSE-2.0.html). For all other
ideas provided on this list, the provider waives all patent and other intellectual
property rights inherent in such information.
[1]
http://probe-weld.itos.redhat.com/weld-numberguess/weld-probe
http://docs.jboss.org/weld/reference/latest/en-US/html/devmode.html
[2]
https://github.com/astefanutti/cdeye
[3]
https://github.com/Thomas-S-B/visualee/