Class ContextMapHelper
- java.lang.Object
-
- org.glassfish.contextpropagation.spi.ContextMapHelper
-
public class ContextMapHelper extends Object
Provides internal access to context-propagation artifacts. Application developers should retrieve the ContextMap from the JNDI instead.
-
-
Constructor Summary
Constructors Constructor Description ContextMapHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextMapgetScopeAwareContextMap()static ContextMapPropagatorgetScopeAwarePropagator()static voidregisterContextFactoryForPrefixNamed(String prefixName, ContextViewFactory factory)ViewCapable objects are created by the context propagation framework when needed using the ContextViewFactory registered against the specified context name
-
-
-
Method Detail
-
getScopeAwareContextMap
public static ContextMap getScopeAwareContextMap()
- Returns:
- The in-scope ContextMap.
-
getScopeAwarePropagator
public static ContextMapPropagator getScopeAwarePropagator()
- Returns:
- The in-scope instance of ContextMapPropagator so that communication protocols can ask the ContextMapPropagator to handle the context propagation bytes on the wire.
-
registerContextFactoryForPrefixNamed
public static void registerContextFactoryForPrefixNamed(String prefixName, ContextViewFactory factory)
ViewCapable objects are created by the context propagation framework when needed using the ContextViewFactory registered against the specified context name- Parameters:
prefixName- This is the name of the context that should be instantiated with the corresponding factory.factory- A ContextViewFactory.
-
-