@Bean(name="msgBroadcastRepository", parent=AmpComponent.class, active=true) public static class MsgBroadcastRepository.MsgBroadcastRepositoryBean extends MDRepositoryBeanWithStatistics<MsgBroadcastRepository> implements MsgBroadcastRepositoryIfc
Modifier and Type | Class and Description |
---|---|
static class |
MsgBroadcastRepository.MsgBroadcastRepositoryBean.MsgBroadcastRepositoryConfigBean |
MDRepositoryBean.MDRepositoryConfigBean<A extends DataSourceAware>, MDRepositoryBean.SelectorType
aliases, dataSourceSelection
Constructor and Description |
---|
MsgBroadcastRepositoryBean() |
Modifier and Type | Method and Description |
---|---|
String |
dumpBroadcastMessageKeys() |
protected Class<? extends MsgBroadcastRepository> |
findClassForDataSource(DataSource dataSource)
Method returns class implementing repository which supports data source instance provided in parameter.
|
Collection<MsgBroadcastRepository.BroadcastMsg> |
getBroadcastMessages() |
MsgBroadcastRepository.BroadcastMsg |
getBroadcastMsg(String id) |
Class<?> |
getDefaultBeanClass()
Returns default class for all bean which are defined using configuration as subbeans of bean implementing this
interface.
|
void |
loadMessagesToBroadcast() |
void |
setDataSource(DataSource dataSource)
Method called to provide class with instance of a data source.
|
boolean |
updateBroadcastMessage(String id,
Element msg,
Date expire,
BareJID recipient) |
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 void setDataSource(DataSource dataSource)
DataSourceAware
setDataSource
in interface DataSourceAware
public void loadMessagesToBroadcast()
loadMessagesToBroadcast
in interface MsgBroadcastRepositoryIfc
public MsgBroadcastRepository.BroadcastMsg getBroadcastMsg(String id)
getBroadcastMsg
in interface MsgBroadcastRepositoryIfc
public String dumpBroadcastMessageKeys()
dumpBroadcastMessageKeys
in interface MsgBroadcastRepositoryIfc
public Collection<MsgBroadcastRepository.BroadcastMsg> getBroadcastMessages()
getBroadcastMessages
in interface MsgBroadcastRepositoryIfc
public boolean updateBroadcastMessage(String id, Element msg, Date expire, BareJID recipient)
updateBroadcastMessage
in interface MsgBroadcastRepositoryIfc
public Class<?> getDefaultBeanClass()
RegistrarBeanWithDefaultBeanClass
getDefaultBeanClass
in interface RegistrarBeanWithDefaultBeanClass
protected Class<? extends MsgBroadcastRepository> findClassForDataSource(DataSource dataSource) throws DBInitException
MDRepositoryBean
findClassForDataSource
in class MDRepositoryBean<MsgBroadcastRepository>
DBInitException
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.