public class ConcurrentContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_HANDLE_FACTORY_NAME
the name of the factory used by the chained context handles
|
Constructor and Description |
---|
ConcurrentContext(String applicationName,
String moduleName,
String componentName) |
Modifier and Type | Method and Description |
---|---|
void |
addFactory(ContextHandleFactory factory)
Adds a new factory.
|
static ConcurrentContext |
current()
Retrieves the current context in the current thread.
|
String |
getApplicationName()
Retrieves the name of the application related with the context.
|
String |
getComponentName()
Retrieves the name of the component related with the context, if any.
|
String |
getModuleName()
Retrieves the name of the module related with the context.
|
static ConcurrentContext |
popCurrent()
Pops the current context in the current thread.
|
static void |
pushCurrent(ConcurrentContext context)
Sets the specified context as the current one, in the current thread.
|
ContextHandle |
saveContext(javax.enterprise.concurrent.ContextService contextService,
Map<String,String> contextObjectProperties)
Saves the current invocation context on a chained context handle.
|
String |
toString() |
public static final String CONTEXT_HANDLE_FACTORY_NAME
public static void pushCurrent(ConcurrentContext context)
context
- The current contextpublic static ConcurrentContext popCurrent()
public static ConcurrentContext current()
public String getApplicationName()
public String getModuleName()
public String getComponentName()
public void addFactory(ContextHandleFactory factory)
factory
- public ContextHandle saveContext(javax.enterprise.concurrent.ContextService contextService, Map<String,String> contextObjectProperties)
contextService
- contextObjectProperties
- Copyright © 2013 JBoss by Red Hat. All rights reserved.