@ApplicationScoped public class DefaultTenantConfigResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) javax.enterprise.inject.Instance<TenantConfigResolver> |
tenantConfigResolver |
(package private) javax.enterprise.inject.Instance<TenantResolver> |
tenantResolver |
| Constructor and Description |
|---|
DefaultTenantConfigResolver() |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
isBlocking(io.vertx.ext.web.RoutingContext context) |
(package private) TenantConfigContext |
resolve(io.vertx.ext.web.RoutingContext context,
boolean create)
Resolve TenantConfigContext which contains the tenant configuration and
the active OIDC connection instance which may be null.
|
(package private) void |
setDefaultTenant(TenantConfigContext defaultTenant) |
(package private) void |
setTenantConfigContextFactory(Function<OidcTenantConfig,TenantConfigContext> tenantConfigContextFactory) |
(package private) void |
setTenantsConfig(Map<String,TenantConfigContext> tenantsConfig) |
void |
verifyResolvers() |
@Inject javax.enterprise.inject.Instance<TenantResolver> tenantResolver
@Inject javax.enterprise.inject.Instance<TenantConfigResolver> tenantConfigResolver
@PostConstruct public void verifyResolvers()
TenantConfigContext resolve(io.vertx.ext.web.RoutingContext context, boolean create)
context - the current request contextcreate - if true then the OIDC connection must be available or established
for the resolution to be successfulvoid setTenantsConfig(Map<String,TenantConfigContext> tenantsConfig)
void setDefaultTenant(TenantConfigContext defaultTenant)
void setTenantConfigContextFactory(Function<OidcTenantConfig,TenantConfigContext> tenantConfigContextFactory)
boolean isBlocking(io.vertx.ext.web.RoutingContext context)
Copyright © 2020 JBoss by Red Hat. All rights reserved.