0

is it possible to change the default scope of CDI Beans (dependent scope) to something else (like ApplicationScope)? Thanks

1
  • Why would you need that? Dec 16, 2013 at 11:27

1 Answer 1

4

There is no simple API call or configuration property to do that, but you can always write a portable extension to add or replace scope annotations by observing the ProcessAnnotatedTypeevent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.