public final class ComponentInvocationContextManagerImpl
extends weblogic.invocation.ComponentInvocationContextManager
ComponentInvocationContextManager
implementation
that uses a local contexts stack to store the component invocation
contexts(Partition, application, module, component details) for a thread.
Containers that need to establish a Component Invocation Context would then set
the invocation context through the ComponentInvocationContextManagerImpl.setCurrentComponentInvocationContext(ComponentInvocationContext)
or runAs method variants ( ComponentInvocationContextManager.runAs(ComponentInvocationContext, Callable)
,
ComponentInvocationContextManager.runAs(ComponentInvocationContext, Runnable)
)Modifier and Type | Class and Description |
---|---|
private static class |
ComponentInvocationContextManagerImpl.DomainConfigTree |
private static class |
ComponentInvocationContextManagerImpl.EditConfigTree |
(package private) static class |
ComponentInvocationContextManagerImpl.NullComponentInvocationContext
A
ComponentInvocationContext implementation that
models null/Global context. |
(package private) static class |
ComponentInvocationContextManagerImpl.PartitionIdNameMapper
This is a utility class used to map partition name to ID.
|
private static class |
ComponentInvocationContextManagerImpl.RuntimeConfigTree |
Modifier and Type | Field and Description |
---|---|
private static java.util.Set<java.util.List<java.lang.StackTraceElement>> |
alreadyLoggedSet |
private java.util.List<weblogic.invocation.ComponentInvocationContextChangeListener> |
contextListeners |
private static java.lang.String |
DATE_FORMAT |
private static boolean |
DETECT_PUSH_POP_USAGES |
private static boolean |
IS_DEBUG_ENABLED |
private weblogic.kernel.AuditableThreadLocal |
LAST_POPPER |
private weblogic.kernel.AuditableThreadLocal |
LAST_PUSHER |
private weblogic.kernel.AuditableThreadLocal |
LOCAL_CONTEXT_STACK
A thread-local to hold the stack of established ComponentInvocationContexts
for a thread.
|
private static weblogic.invocation.ComponentInvocationContext |
NULL_CIC |
Constructor and Description |
---|
ComponentInvocationContextManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addInvocationContextChangeListener(weblogic.invocation.ComponentInvocationContextChangeListener ic) |
protected void |
checkIfKernel(java.security.Principal sub) |
weblogic.invocation.ComponentInvocationContext |
createComponentInvocationContext(java.lang.String appId,
java.lang.String moduleName,
java.lang.String componentName) |
weblogic.invocation.ComponentInvocationContext |
createComponentInvocationContext(java.lang.String partitionName,
java.lang.String applicationName,
java.lang.String applicationVersion,
java.lang.String moduleName,
java.lang.String componentName) |
private static void |
debug(java.lang.String debugMsg) |
private static void |
detectPushPopUsages(java.lang.String method) |
weblogic.invocation.ComponentInvocationContext |
getCurrentComponentInvocationContext() |
private static weblogic.security.acl.internal.AuthenticatedSubject |
getKernelId() |
private void |
notifyListeners(weblogic.invocation.ComponentInvocationContext oldCIC,
weblogic.invocation.ComponentInvocationContext newCIC,
boolean isPush) |
void |
popComponentInvocationContext() |
private void |
popComponentInvocationContext(java.util.Deque<weblogic.invocation.ComponentInvocationContext> ctxts) |
void |
pushComponentInvocationContext(weblogic.invocation.ComponentInvocationContext cic) |
private void |
pushComponentInvocationContext(java.util.Deque<weblogic.invocation.ComponentInvocationContext> ctxts,
weblogic.invocation.ComponentInvocationContext cic) |
void |
removeInvocationContextChangeListener(weblogic.invocation.ComponentInvocationContextChangeListener ic) |
weblogic.invocation.ManagedInvocationContext |
setCurrentComponentInvocationContext(weblogic.invocation.ComponentInvocationContext cic) |
private static final boolean IS_DEBUG_ENABLED
private static final java.lang.String DATE_FORMAT
private static java.util.Set<java.util.List<java.lang.StackTraceElement>> alreadyLoggedSet
private static final boolean DETECT_PUSH_POP_USAGES
private final weblogic.kernel.AuditableThreadLocal LOCAL_CONTEXT_STACK
AuditableThreadLocal
as the contents
of the thread local of an AuditableThread
is automatically
cleared when the thread is returned to a pool.private final weblogic.kernel.AuditableThreadLocal LAST_PUSHER
private final weblogic.kernel.AuditableThreadLocal LAST_POPPER
private final java.util.List<weblogic.invocation.ComponentInvocationContextChangeListener> contextListeners
private static final weblogic.invocation.ComponentInvocationContext NULL_CIC
public ComponentInvocationContextManagerImpl()
private static void detectPushPopUsages(java.lang.String method)
public weblogic.invocation.ComponentInvocationContext getCurrentComponentInvocationContext()
getCurrentComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
public void pushComponentInvocationContext(weblogic.invocation.ComponentInvocationContext cic)
pushComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
private void pushComponentInvocationContext(java.util.Deque<weblogic.invocation.ComponentInvocationContext> ctxts, weblogic.invocation.ComponentInvocationContext cic)
public void popComponentInvocationContext()
popComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
private void popComponentInvocationContext(java.util.Deque<weblogic.invocation.ComponentInvocationContext> ctxts)
public weblogic.invocation.ManagedInvocationContext setCurrentComponentInvocationContext(weblogic.invocation.ComponentInvocationContext cic)
setCurrentComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
ComponentInvocationContextManager.setCurrentComponentInvocationContext(ComponentInvocationContext)
public void addInvocationContextChangeListener(weblogic.invocation.ComponentInvocationContextChangeListener ic)
addInvocationContextChangeListener
in class weblogic.invocation.ComponentInvocationContextManager
public void removeInvocationContextChangeListener(weblogic.invocation.ComponentInvocationContextChangeListener ic)
removeInvocationContextChangeListener
in class weblogic.invocation.ComponentInvocationContextManager
private void notifyListeners(weblogic.invocation.ComponentInvocationContext oldCIC, weblogic.invocation.ComponentInvocationContext newCIC, boolean isPush)
public weblogic.invocation.ComponentInvocationContext createComponentInvocationContext(java.lang.String appId, java.lang.String moduleName, java.lang.String componentName)
createComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
public weblogic.invocation.ComponentInvocationContext createComponentInvocationContext(java.lang.String partitionName, java.lang.String applicationName, java.lang.String applicationVersion, java.lang.String moduleName, java.lang.String componentName)
createComponentInvocationContext
in class weblogic.invocation.ComponentInvocationContextManager
private static void debug(java.lang.String debugMsg)
private static weblogic.security.acl.internal.AuthenticatedSubject getKernelId()
protected void checkIfKernel(java.security.Principal sub)
checkIfKernel
in class weblogic.invocation.ComponentInvocationContextManager