public abstract class MultiTenancyImplementation extends AbstractMultiTenantConnectionProvider implements ServiceRegistryAwareService, Configurable, Stoppable
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_PROVIDER_CLASS |
| Constructor and Description |
|---|
MultiTenancyImplementation() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map configurationValues) |
protected ConnectionProvider |
createConnectionProvider(String tenant,
Map configuration) |
protected ConnectionProvider |
getAnyConnectionProvider() |
protected ConnectionProvider |
getConnectionProvider(String tenant,
Map configuration) |
String |
getConnectionURL(String tenant) |
String |
getDefaultTenant() |
String |
getPassword(String tenant) |
MultiTenancyStrategy |
getStrategy() |
abstract String |
getTenant() |
String |
getUsername(String tenant) |
void |
injectServices(ServiceRegistryImplementor serviceRegistry) |
protected ConnectionProvider |
selectConnectionProvider(String tenantIdentifier) |
void |
stop() |
getAnyConnection, getConnection, isUnwrappableAs, releaseAnyConnection, releaseConnection, supportsAggressiveRelease, unwrappublic static final String CONNECTION_PROVIDER_CLASS
public MultiTenancyStrategy getStrategy()
protected ConnectionProvider getAnyConnectionProvider()
getAnyConnectionProvider in class AbstractMultiTenantConnectionProviderpublic String getDefaultTenant()
public abstract String getTenant()
protected ConnectionProvider selectConnectionProvider(String tenantIdentifier)
selectConnectionProvider in class AbstractMultiTenantConnectionProvider@NotNull protected ConnectionProvider getConnectionProvider(String tenant, Map configuration)
@NotNull protected ConnectionProvider createConnectionProvider(String tenant, Map configuration)
public void injectServices(ServiceRegistryImplementor serviceRegistry)
injectServices in interface ServiceRegistryAwareServicepublic void configure(Map configurationValues)
configure in interface ConfigurableCopyright © 2022 MANYDESIGNS s.r.l.. All rights reserved.