public class InvocationContextContainerImpl extends Object implements InvocationContextContainer
Constructor and Description |
---|
InvocationContextContainerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearThreadLocal()
Remove the stored InvocationContext from the calling thread.
|
InvocationContext |
getInvocationContext(boolean quiet)
Returns the
InvocationContext that is currently associated with the calling thread. |
void |
init(Configuration configuration,
GlobalConfiguration globalConfiguration) |
void |
setThreadLocal(InvocationContext context)
Associate the InvocationContext parameter with the calling thread.
|
void |
stop() |
public void init(Configuration configuration, GlobalConfiguration globalConfiguration)
public void stop()
public InvocationContext getInvocationContext(boolean quiet)
InvocationContextContainer
InvocationContext
that is currently associated with the calling thread. Important:
implementations of this method are most likely expensive, involving thread locals. It is recommended to cache
the result of this method rather than repeating the call.getInvocationContext
in interface InvocationContextContainer
public void setThreadLocal(InvocationContext context)
InvocationContextContainer
setThreadLocal
in interface InvocationContextContainer
public void clearThreadLocal()
InvocationContextContainer
clearThreadLocal
in interface InvocationContextContainer
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.