Do we need to destroy a CDI bean obtained programmatically?

Viewed 1417

I have obtained a CDI bean which was obtained programatically using the following code:

MyBean bean = CDI.current().select(MyBean.class, qualifier).get();

Once I am done, do I need to destroy this bean using

CDI.current().destroy (bean);

Or does the bean inherit the scope from my class?

1 Answers
Related