Class ViewScope

java.lang.Object
org.joinfaces.viewscope.ViewScope
All Implemented Interfaces:
org.springframework.beans.factory.config.Scope

public class ViewScope extends Object implements org.springframework.beans.factory.config.Scope
Implementation of view scope. This class exposes the JSF view map as spring Scope.
  • Field Details

    • SCOPE_VIEW

      public static final String SCOPE_VIEW
      Scope identifier for view scope: "view".
      See Also:
    • DESTRUCTION_CALLBACK_NAME_PREFIX

      public static final String DESTRUCTION_CALLBACK_NAME_PREFIX
      Constant identifying the String prefixed to the name of a destruction callback when it is stored in a view map.
      See Also:
      • ServletRequestAttributes.DESTRUCTION_CALLBACK_NAME_PREFIX
  • Constructor Details

    • ViewScope

      public ViewScope()
  • Method Details

    • get

      public Object get(String name, org.springframework.beans.factory.ObjectFactory objectFactory)
      Specified by:
      get in interface org.springframework.beans.factory.config.Scope
    • remove

      @Nullable public Object remove(String name)
      Specified by:
      remove in interface org.springframework.beans.factory.config.Scope
    • getConversationId

      @Nullable public String getConversationId()
      Specified by:
      getConversationId in interface org.springframework.beans.factory.config.Scope
    • registerDestructionCallback

      public void registerDestructionCallback(String name, Runnable callback)
      Specified by:
      registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
    • resolveContextualObject

      @Nullable public Object resolveContextualObject(String key)
      Specified by:
      resolveContextualObject in interface org.springframework.beans.factory.config.Scope