0

I tried to debug of beans creation and understood that it is random order. What is the order of bean creation in Weld? Is there a graph of beans?

Yurii Kachmar
  • 76
  • 1
  • 6

1 Answers1

0

It won't be "Random". Generally everything will be "lazy" instantiated, but when demand for a bean occurs, it will reach to the bottom of the bean dependency graph and recursively instantiate dependencies. If two nodes occur at the same depth, order of instantiation may be undefined, but most certainly won't be randomized.

Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84