com.holonplatform.jdbc.spring.internal

## Class DataContextDataSourceInitializedEvent

- java.lang.Object
- - java.util.EventObject
  - - org.springframework.context.ApplicationEvent
    - - com.holonplatform.jdbc.spring.internal.DataContextDataSourceInitializedEvent

- All Implemented Interfaces:
    Serializable

      public class DataContextDataSourceInitializedEvent
      extends org.springframework.context.ApplicationEvent

  `ApplicationEvent` used internally to trigger `DataSource` initialization.
  Since:
    5.0.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataContextDataSourceInitializedEvent(DataSource source, String dataContextId)` Create a new `DataContextDataSourceInitializedEvent`.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getDataContextId()` Gets the data context id of the DataSource

    - ### Methods inherited from class org.springframework.context.ApplicationEvent

      `getTimestamp`

    - ### Methods inherited from class java.util.EventObject

      `getSource, toString`

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

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DataContextDataSourceInitializedEvent

          public DataContextDataSourceInitializedEvent(DataSource source,
                                                       String dataContextId)

      Create a new `DataContextDataSourceInitializedEvent`.
      Parameters:
        `source` - the source `DataSource`
        `dataContextId` - Data context id of the DataSource

  - ### Method Detail

    - #### getDataContextId

          public String getDataContextId()

      Gets the data context id of the DataSource
      Returns:
        the data context id

Copyright © 2019 The Holon Platform. All rights reserved.