Currently, there is an optimization (added as part of
WELD-1076
and
WELD-920
) - CreatinalContext does not store dependent instances that do not define @PreDestroy callbacks nor are they intercepted by a @PreDestroy interceptor nor have a disposer method declared. Maybe, we could extend the optimization so that built-in dependent beans are not stored either.
|