Package io.vertigo.core.node.component
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
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CONNECTOR_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description C
getClient()
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.
-
-
-
Field Detail
-
DEFAULT_CONNECTOR_NAME
static final String DEFAULT_CONNECTOR_NAME
- See Also:
- Constant Field Values
-
-
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()
-
-