@Bean(name="dualIPRepository", parent=SeeOtherHostDualIP.class, active=true) public static class SeeOtherHostDualIP.DualIPRepositoryWrapper extends MDRepositoryBeanWithStatistics<SeeOtherHostDualIP.DualIPRepository> implements SeeOtherHostDualIP.DualIPRepository<DataSource>
Modifier and Type | Class and Description |
---|---|
static class |
SeeOtherHostDualIP.DualIPRepositoryWrapper.DualIPRepositoryWrapperConfigBean |
MDRepositoryBean.MDRepositoryConfigBean<A extends DataSourceAware>, MDRepositoryBean.SelectorType
aliases, dataSourceSelection
HOSTNAME_ID, SECONDARY_HOSTNAME_ID
Constructor and Description |
---|
DualIPRepositoryWrapper() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends SeeOtherHostDualIP.DualIPRepository> |
findClassForDataSource(DataSource dataSource)
Method returns class implementing repository which supports data source instance provided in parameter.
|
Class<?> |
getDefaultBeanClass()
Returns default class for all bean which are defined using configuration as subbeans of bean implementing this
interface.
|
Map<BareJID,BareJID> |
queryAllDB() |
void |
setDataSource(DataSource dataSource)
Method called to provide class with instance of a data source.
|
everyHour, everyMinute, everySecond, getRepositories, getRepository, getStatistics, setStatisticsEnabled, updateDataSourceAware, wrapInProxy
beforeUnregister, getName, initialize, initializeRepository, onDataSourceChange, register, registerIfNotExists, repositoriesStream, setDataSourceBean, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
belongsTo
public Map<BareJID,BareJID> queryAllDB() throws SQLException
queryAllDB
in interface SeeOtherHostDualIP.DualIPRepository<DataSource>
SQLException
public void setDataSource(DataSource dataSource)
DataSourceAware
setDataSource
in interface DataSourceAware<DataSource>
public Class<?> getDefaultBeanClass()
RegistrarBeanWithDefaultBeanClass
getDefaultBeanClass
in interface RegistrarBeanWithDefaultBeanClass
protected Class<? extends SeeOtherHostDualIP.DualIPRepository> findClassForDataSource(DataSource dataSource) throws DBInitException
MDRepositoryBean
findClassForDataSource
in class MDRepositoryBean<SeeOtherHostDualIP.DualIPRepository>
DBInitException
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.