Package org.apache.synapse.commons.datasource

## Class DatasourceMBeanRepository

- java.lang.Object
- - org.apache.synapse.commons.datasource.DatasourceMBeanRepository

- All Implemented Interfaces:
    `MBeanRepository`

      public class DatasourceMBeanRepository
      extends Object
      implements MBeanRepository

  Keeps DatasourceMBeans

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addMBean​(String name, Object mBean)` |
    `void` | `clear()` |
    `static DatasourceMBeanRepository` | `getInstance()` |
    `Object` | `getMBean​(String name)` |
    `void` | `removeMBean​(String name)` |

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

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

- - ### Method Detail

    - #### getInstance

          public static DatasourceMBeanRepository getInstance()

    - #### addMBean

          public void addMBean​(String name,
                               Object mBean)

      Specified by:
        `addMBean` in interface `MBeanRepository`

    - #### getMBean

          public Object getMBean​(String name)

      Specified by:
        `getMBean` in interface `MBeanRepository`

    - #### removeMBean

          public void removeMBean​(String name)

      Specified by:
        `removeMBean` in interface `MBeanRepository`

    - #### clear

          public void clear()

      Specified by:
        `clear` in interface `MBeanRepository`