ix.util.context
Class TypedContextValue<T>

java.lang.Object
  extended by ix.util.context.ContextValue<T>
      extended by ix.util.context.TypedContextValue<T>

public class TypedContextValue<T>
extends ContextValue<T>

An object that contains a single context-dependent value.


Field Summary
protected  java.lang.Class type
           
 
Fields inherited from class ix.util.context.ContextValue
holder, link
 
Constructor Summary
TypedContextValue(java.lang.Class type, T value)
           
TypedContextValue(ContextHolder holder, java.lang.Class type, T value)
           
 
Method Summary
 void set(T new_value)
           
 
Methods inherited from class ix.util.context.ContextValue
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.Class type
Constructor Detail

TypedContextValue

public TypedContextValue(java.lang.Class type,
                         T value)

TypedContextValue

public TypedContextValue(ContextHolder holder,
                         java.lang.Class type,
                         T value)
Method Detail

set

public void set(T new_value)
Overrides:
set in class ContextValue<T>