Class TenantThreadContextListener

java.lang.Object
com.sap.cloud.sdk.cloudplatform.tenant.TenantThreadContextListener
All Implemented Interfaces:
ThreadContextListener, Comparable<ThreadContextListener>

public class TenantThreadContextListener extends Object implements ThreadContextListener
Implementation of ThreadContextListener that ensures the correct initialization of Tenants when working with non-container managed threads on all supported Cloud platforms.
  • Field Details

    • PROPERTY_TENANT

      public static final String PROPERTY_TENANT
      The ThreadContext key.
  • Constructor Details

    • TenantThreadContextListener

      public TenantThreadContextListener()
      Default constructor.
    • TenantThreadContextListener

      public TenantThreadContextListener(@Nonnull Tenant tenant)
      Constructor for providing a Tenant to be returned by this listener.
      Parameters:
      tenant - The Tenant to be used by this listener.
  • Method Details