The CDI container provides a built in instance of RequestContextController that is dependent scoped for the purposes of activating and deactivating.
The container provides a built in interceptor that may be used to annotate classes and methods to indicate that a request context should be activated when this method is invoked.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.