public class ScpNeoAuditLogThreadContextListener extends Object implements ThreadContextListener
ThreadContextListener
that performs the JNDI lookup of the connectivity configuration and
authentication header service objects on SAP CP Neo.ThreadContextListener.DefaultPriorities
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_AUDIT_LOG_MESSAGE_FACTORY
The ThreadContext key.
|
Constructor and Description |
---|
ScpNeoAuditLogThreadContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDestroy(ThreadContext threadContext,
ThreadContext parentThreadContext)
Invoked before the current
ThreadContext is destroyed and reset. |
void |
beforeInitialize(ThreadContext threadContext,
ThreadContext parentThreadContext)
Invoked before the current
ThreadContext is initialized and set. |
int |
getPriority()
Returns the priority that defines the order in which listeners are invoked.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterDestroy, afterInitialize, compareTo
public static final String PROPERTY_AUDIT_LOG_MESSAGE_FACTORY
public int getPriority()
getPriority
in interface ThreadContextListener
public void beforeInitialize(@Nonnull ThreadContext threadContext, @Nullable ThreadContext parentThreadContext)
ThreadContext
is initialized and set. This method can be used, for example, to
inherit properties from the parent context.beforeInitialize
in interface ThreadContextListener
threadContext
- The ThreadContext
that is initialized and will be set.parentThreadContext
- The existing parent ThreadContext
, or null
if there is currently no
ThreadContext
.public void beforeDestroy(@Nonnull ThreadContext threadContext, @Nullable ThreadContext parentThreadContext)
ThreadContext
is destroyed and reset.beforeDestroy
in interface ThreadContextListener
threadContext
- The ThreadContext
that is destroyed and will be removed.parentThreadContext
- The parent ThreadContext
, or null
if there is no parent ThreadContext
.Copyright © 2021 SAP SE. All rights reserved.