Class ServletContextReference<V>

java.lang.Object
com.atlassian.jira.web.servletcontext.ServletContextReference<V>
All Implemented Interfaces:
Serializable

public class ServletContextReference<V> extends Object implements Serializable
A servlet context reference is a variable that is tied to the life of the current servlet context
Since:
v4.2
See Also:
  • Constructor Details

    • ServletContextReference

      public ServletContextReference(String attributeName)
      Constructs a reference that has a null value
      Parameters:
      attributeName - the name of the servlet context reference
  • Method Details

    • set

      public void set(V value)
      Sets the value of the servlet context reference
      Parameters:
      value - the new value of the reference
    • get

      public V get()
      Returns:
      the current value of the servlet context reference