com.atlassian.jira.web.servletcontext
Class ServletContextReference<V>

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
ServletContextReference(String attributeName)
          Constructs a reference that has a null value
 
Method Summary
 V get()
           
 void set(V value)
          Sets the value of the servlet context reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextReference

public ServletContextReference(String attributeName)
Constructs a reference that has a null value

Parameters:
attributeName - the name of the servlet context reference
Method Detail

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.