public abstract class SpringCommonDataSourceProvider<DATA_SOURCE extends CommonDataSource<?,?,?,?>,REPOSITORY_TYPE extends org.springframework.data.repository.PagingAndSortingRepository> extends SpringDataSourceProvider<DATA_SOURCE,CommonDataSourceSelector> implements CommonDataSourceProvider<DATA_SOURCE>
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected Map<String,org.apache.commons.lang3.tuple.Pair<TargetDataSource,Class<? extends REPOSITORY_TYPE>>> |
dataSourceRepositories |
protected Map<String,String> |
idToDataSourceName |
protected Map<String,io.devbench.uibuilder.api.parse.BindingContext> |
registeredBindingContexts |
| Constructor and Description |
|---|
SpringCommonDataSourceProvider(org.springframework.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<org.apache.commons.lang3.tuple.Pair<TargetDataSource,Class<? extends REPOSITORY_TYPE>>> |
findDataSourceNameById(String dataSourceId) |
@Nullable io.devbench.uibuilder.api.parse.BindingContext |
getBindingContextForName(String dataSourceName,
@Nullable CommonDataSourceSelector dataSourceSelector) |
void |
registerBindingContextForDataSource(io.devbench.uibuilder.api.parse.BindingContext bindingContext,
@Nullable CommonDataSourceSelector dataSourceSelector) |
getInterestedAnnotationTypes, initialize, lateInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateBindingsKey, createNewDataSource, getDataSource, getOptionalDefaultQueryName, requestRefreshprotected final org.springframework.context.ApplicationContext applicationContext
protected Map<String,io.devbench.uibuilder.api.parse.BindingContext> registeredBindingContexts
protected Map<String,org.apache.commons.lang3.tuple.Pair<TargetDataSource,Class<? extends REPOSITORY_TYPE extends org.springframework.data.repository.PagingAndSortingRepository>>> dataSourceRepositories
public SpringCommonDataSourceProvider(org.springframework.context.ApplicationContext applicationContext)
public final void registerBindingContextForDataSource(io.devbench.uibuilder.api.parse.BindingContext bindingContext,
@Nullable
@Nullable CommonDataSourceSelector dataSourceSelector)
registerBindingContextForDataSource in interface DataSourceProvider<DATA_SOURCE extends CommonDataSource<?,?,?,?>,CommonDataSourceSelector>@Nullable public final @Nullable io.devbench.uibuilder.api.parse.BindingContext getBindingContextForName(String dataSourceName, @Nullable @Nullable CommonDataSourceSelector dataSourceSelector)
getBindingContextForName in interface DataSourceProvider<DATA_SOURCE extends CommonDataSource<?,?,?,?>,CommonDataSourceSelector>protected final Optional<org.apache.commons.lang3.tuple.Pair<TargetDataSource,Class<? extends REPOSITORY_TYPE>>> findDataSourceNameById(String dataSourceId)
Copyright © 2018–2020. All rights reserved.