Class CurrentTagMapUtils


  • final class CurrentTagMapUtils
    extends java.lang.Object
    Utility methods for accessing the TagContext contained in the Context.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CurrentTagMapUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static TagContext getCurrentTagMap()
      Returns the TagContext from the current context.
      (package private) static Scope withTagMap​(TagContext tags)
      Enters the scope of code where the given TagContext is in the current context and returns an object that represents that scope.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CurrentTagMapUtils

        private CurrentTagMapUtils()
    • Method Detail

      • getCurrentTagMap

        static TagContext getCurrentTagMap()
        Returns the TagContext from the current context.
        Returns:
        the TagContext from the current context.
      • withTagMap

        static Scope withTagMap​(TagContext tags)
        Enters the scope of code where the given TagContext is in the current context and returns an object that represents that scope. The scope is exited when the returned object is closed.
        Parameters:
        tags - the TagContext to be set to the current context.
        Returns:
        an object that defines a scope where the given TagContext is set to the current context.