public class ScpNeoTenantFacade extends AbstractTenantFacade implements WithRuntimeDependencies
Constructor and Description |
---|
ScpNeoTenantFacade() |
Modifier and Type | Method and Description |
---|---|
void |
assertRuntimeDependenciesExist()
Asserts that required runtime dependencies are available on the class path.
|
Class<ScpNeoTenant> |
getTenantClass()
Returns the platform-specific implementation class of
Tenant . |
protected Tenant |
newMockedTenant()
Instantiates a mocked
Tenant . |
Optional<Tenant> |
resolveCurrentTenant()
Resolves the current
Tenant using the platform-specific lookup. |
getCurrentTenant, getCurrentTenantIfAvailable, getMockedTenant
@Nonnull public Class<ScpNeoTenant> getTenantClass()
Tenant
. For internal use only.getTenantClass
in interface TenantFacade
@Nonnull protected Tenant newMockedTenant()
Tenant
.newMockedTenant
in class AbstractTenantFacade
Tenant
.public void assertRuntimeDependenciesExist() throws DependencyNotFoundException
assertRuntimeDependenciesExist
in interface WithRuntimeDependencies
DependencyNotFoundException
- If a required runtime dependency is not available.@Nonnull public Optional<Tenant> resolveCurrentTenant() throws TenantAccessException
Tenant
using the platform-specific lookup. For more details on the availability of a
tenant, refer to TenantFacade.getCurrentTenantIfAvailable()
.
For internal use only.
Caution: This method must only be invoked within the container-managed thread of a request.
resolveCurrentTenant
in interface TenantFacade
Optional
of the current Tenant
.TenantAccessException
- If there is an issue while resolving the Tenant
.TenantRequestContextListener
Copyright © 2018 SAP SE. All rights reserved.