Class ViewImpl

  • All Implemented Interfaces:
    View

    public class ViewImpl
    extends Object
    implements View
    Provides access to a subset of the ContextMap. Views bypass security checks. However Views are hidden in ViewCapable instances for which access is verified.
    • Constructor Detail

      • ViewImpl

        protected ViewImpl​(String prefix)
    • Method Detail

      • get

        public <T> T get​(String name)
        Specified by:
        get in interface View
        Parameters:
        name - The name of the context sought.
        Returns:
        The context associated to the specified name.
      • put

        public <T> T put​(String name,
                         String context,
                         EnumSet<PropagationMode> propagationModes)
        Description copied from interface: View
        Stores the specified context under the specified name into the in-scope ContextMap.
        Specified by:
        put in interface View
        Parameters:
        name - The name to associate to the specified context
        context - a String context.
        propagationModes - A set of propagation modes that control over which protocol this context will be propagated.
        Returns:
        The context being replaced.
      • put

        public <T,​U extends Number> T put​(String name,
                                                U context,
                                                EnumSet<PropagationMode> propagationModes)
        Description copied from interface: View
        Stores the specified context under the specified name into the in-scope ContextMap.
        Specified by:
        put in interface View
        Parameters:
        name - The name to associate to the specified context
        context - a Number context.
        propagationModes - A set of propagation modes that control over which protocol this context will be propagated.
        Returns:
        The context being replaced.
      • put

        public <T> T put​(String name,
                         Boolean context,
                         EnumSet<PropagationMode> propagationModes)
        Description copied from interface: View
        Stores the specified context under the specified name into the in-scope ContextMap.
        Specified by:
        put in interface View
        Parameters:
        name - The name to associate to the specified context
        context - an boolean String context.
        propagationModes - A set of propagation modes that control over which protocol this context will be propagated.
        Returns:
        The context being replaced.
      • put

        public <T> T put​(String name,
                         Character context,
                         EnumSet<PropagationMode> propagationModes)
        Description copied from interface: View
        Stores the specified context under the specified name into the in-scope ContextMap.
        Specified by:
        put in interface View
        Parameters:
        name - The name to associate to the specified context
        context - an char String context.
        propagationModes - A set of propagation modes that control over which protocol this context will be propagated.
        Returns:
        The context being replaced.
      • remove

        public <T> T remove​(String name)
        Description copied from interface: View
        Removes the specified context under the specified name from the in-scope ContextMap.
        Specified by:
        remove in interface View
        Parameters:
        name - The name to associate to the specified context
        Returns:
        The context being replaced.
      • clean

        public void clean()