public class TenantThreadContextListener extends Object implements ThreadContextListener
ThreadContextListener that ensures the correct initialization of Tenants when
working with non-container managed threads on all supported Cloud platforms.ThreadContextListener.DefaultPriorities| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_TENANT
The ThreadContext key.
|
| Constructor and Description |
|---|
TenantThreadContextListener()
Default constructor.
|
TenantThreadContextListener(Tenant tenant)
Constructor for providing a
Tenant to be returned by this listener. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitialize(ThreadContext threadContext) |
int |
getPriority() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeInitialize, compareTopublic static final String PROPERTY_TENANT
public TenantThreadContextListener()
public int getPriority()
getPriority in interface ThreadContextListenerpublic void afterInitialize(@Nonnull ThreadContext threadContext)
afterInitialize in interface ThreadContextListenerCopyright © 2022 SAP SE. All rights reserved.