Class EnvironmentContext
- All Implemented Interfaces:
Serializable,Cloneable,Map<Class<?>,Object>
Keeps objects from environment (e. g. servlet container) which can be passed
in resource. Parameter must be annotated by
Context.- Version:
- $Id: $
- Author:
- Andrey Parfonov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
EnvironmentContext
public EnvironmentContext()
-
-
Method Details
-
getCurrent
- Returns:
- preset
ThreadLocalEnvironmentContext - See Also:
-
setCurrent
- Parameters:
env- setThreadLocalEnvironmentContext- See Also:
-