public class ThreadContextMigratorUtil extends Object
| Constructor and Description |
|---|
ThreadContextMigratorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addThreadContextMigrator(AxisConfiguration axisConfiguration,
String threadContextMigratorListID,
ThreadContextMigrator migrator)
Register a new ThreadContextMigrator.
|
static void |
addThreadContextMigrator(ConfigurationContext configurationContext,
String threadContextMigratorListID,
ThreadContextMigrator migrator)
Register a new ThreadContextMigrator.
|
static void |
performContextCleanup(String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to remove information from
the context if necessary.
|
static void |
performMigrationToContext(String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to move info from the
thread of execution into the context.
|
static void |
performMigrationToThread(String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to move context info
to the thread of execution.
|
static void |
performThreadCleanup(String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to remove information
from the thread of execution if necessary.
|
public static void addThreadContextMigrator(ConfigurationContext configurationContext, String threadContextMigratorListID, ThreadContextMigrator migrator) throws AxisFault
configurationContext - threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.migrator - AxisFaultpublic static void addThreadContextMigrator(AxisConfiguration axisConfiguration, String threadContextMigratorListID, ThreadContextMigrator migrator) throws AxisFault
axisConfiguration - threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.migrator - AxisFaultpublic static void performMigrationToThread(String threadContextMigratorListID, MessageContext msgContext) throws AxisFault
threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.msgContext - AxisFaultpublic static void performThreadCleanup(String threadContextMigratorListID, MessageContext msgContext)
threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.msgContext - public static void performMigrationToContext(String threadContextMigratorListID, MessageContext msgContext) throws AxisFault
threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.msgContext - AxisFaultpublic static void performContextCleanup(String threadContextMigratorListID, MessageContext msgContext)
threadContextMigratorListID - The name of the parameter in the
AxisConfiguration that contains
the list of migrators.msgContext - Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.