public class ScpNeoDestinationsThreadContextListener 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_AUTHENTICATION_HEADER_PROVIDER
The ThreadContext key for the Authentication Header Provider.
|
static String |
PROPERTY_CONNECTIVITY_CONFIGURATION
The ThreadContext key for the Connectivity Configuration.
|
Constructor and Description |
---|
ScpNeoDestinationsThreadContextListener() |
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_CONNECTIVITY_CONFIGURATION
public static final String PROPERTY_AUTHENTICATION_HEADER_PROVIDER
public ScpNeoDestinationsThreadContextListener()
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 © 2020 SAP SE. All rights reserved.