Interface Connector<C>

  • All Superinterfaces:
    CoreComponent

    public interface Connector<C>
    extends CoreComponent
    A connector is a particular core-component. A connector bridge to dedicated library or product but with no purpose in mind. A connector is only used by plugins to implement specific functions via the dedicated library. All connectors MUST BE thread safe. Connectors are singletons. As a connector is a core-component, it can own component's behaviors such as Activeable.
    Author:
    mlaroche
    • Method Detail

      • getName

        default String getName()
        A connector might need to define it's name to be findable by plugin and to differentiate multiple instance of the same connector. For example, I know that my plugin needs a connection to the "secondary" database. "main" is the default but connector can have a different strategy, for example via a @ParamValue parameter in it's constuctor
        Returns:
        the name of the connector
      • getClient

        C getClient()