Class ViewScopeContext

  • All Implemented Interfaces:
    jakarta.enterprise.context.spi.Context

    @Typed
    public class ViewScopeContext
    extends Object
    implements jakarta.enterprise.context.spi.Context
    CDI Context to handle @ViewScoped beans.
    Author:
    Leonardo Uribe
    • Constructor Detail

      • ViewScopeContext

        public ViewScopeContext​(jakarta.enterprise.inject.spi.BeanManager beanManager)
    • Method Detail

      • getCurrentViewScopeId

        public String getCurrentViewScopeId​(boolean create)
      • getScope

        public Class<? extends Annotation> getScope()
        Specified by:
        getScope in interface jakarta.enterprise.context.spi.Context
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface jakarta.enterprise.context.spi.Context
      • isActive

        public boolean isActive​(FacesContext facesContext)
      • get

        public <T> T get​(jakarta.enterprise.context.spi.Contextual<T> bean)
        Specified by:
        get in interface jakarta.enterprise.context.spi.Context
      • get

        public <T> T get​(jakarta.enterprise.context.spi.Contextual<T> bean,
                         jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
        Specified by:
        get in interface jakarta.enterprise.context.spi.Context
      • checkActive

        protected void checkActive​(FacesContext facesContext)
      • destroyAll

        public static void destroyAll​(FacesContext facesContext)
      • destroyAll

        public static void destroyAll​(FacesContext facesContext,
                                      String viewScopeId)