Package tigase.db.beans

# Class DataSourceBean.DataSourceChangedEvent

java.lang.Object
tigase.db.beans.DataSourceBean.DataSourceChangedEvent

All Implemented Interfaces:
  `EventBusEvent`

Enclosing class:
  DataSourceBean

public static class DataSourceBean.DataSourceChangedEvent extends Object implements EventBusEvent
Event emitted by `DataSourceBean` using `EventBus` when instance of `DataSource` for some name changes.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DataSourceChangedEvent(DataSourceBean bean, String domain, DataSource newDataSource, DataSource oldDataSource)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getDomain()`
  Get name for which data source instance was changed
  `DataSource`
  `getNewDataSource()`
  Get new instance of data source
  `DataSource`
  `getOldDataSource()`
  Get old instance of data source
  `boolean`
  `isCorrectSender(DataSourceBean bean)`
  Check if event was emitted by provided instance of `DataSourceBean`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DataSourceChangedEvent

    public DataSourceChangedEvent(DataSourceBean bean, String domain, DataSource newDataSource, DataSource oldDataSource)

- ## Method Details

  - ### isCorrectSender

    public boolean isCorrectSender(DataSourceBean bean)
    Check if event was emitted by provided instance of `DataSourceBean`

  - ### getDomain

    public String getDomain()
    Get name for which data source instance was changed

  - ### getOldDataSource

    public DataSource getOldDataSource()
    Get old instance of data source

  - ### getNewDataSource

    public DataSource getNewDataSource()
    Get new instance of data source