|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis2.util.ThreadContextMigratorUtil
This is a utility class to make it easier/cleaner for user programming model-level implementations (e.g. the Axis2 JAX-WS code) to invoke the ThreadContextMigrators.
| Constructor Summary | |
ThreadContextMigratorUtil()
|
|
| Method Summary | |
static void |
addThreadContextMigrator(ConfigurationContext configurationContext,
java.lang.String threadContextMigratorListID,
ThreadContextMigrator migrator)
Register a new ThreadContextMigrator. |
static void |
performContextCleanup(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to remove information from the context if necessary. |
static void |
performMigrationToContext(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to move info from the thread of execution into the context. |
static void |
performMigrationToThread(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to move context info to the thread of execution. |
static void |
performThreadCleanup(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
Activate any registered ThreadContextMigrators to remove information from the thread of execution if necessary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadContextMigratorUtil()
| Method Detail |
public static void addThreadContextMigrator(ConfigurationContext configurationContext,
java.lang.String threadContextMigratorListID,
ThreadContextMigrator migrator)
configurationContext - threadContextMigratorListID - The name of the property in the
ConfigurationContext that contains
the list of migrators.migrator -
public static void performMigrationToThread(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
throws AxisFault
threadContextMigratorListID - The name of the property in the
ConfigurationContext that contains
the list of migrators.msgContext -
AxisFault
public static void performThreadCleanup(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
threadContextMigratorListID - The name of the property in the
ConfigurationContext that contains
the list of migrators.msgContext -
public static void performMigrationToContext(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
throws AxisFault
threadContextMigratorListID - The name of the property in the
ConfigurationContext that contains
the list of migrators.msgContext -
AxisFault
public static void performContextCleanup(java.lang.String threadContextMigratorListID,
MessageContext msgContext)
threadContextMigratorListID - The name of the property in the
ConfigurationContext that contains
the list of migrators.msgContext -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||