Package com.seeq.link.agent
Class DefaultConnectorLoader
java.lang.Object
com.seeq.link.agent.DefaultConnectorLoader
- All Implemented Interfaces:
ConnectorLoader
Loads any JARs found on its ConnectorSearchPaths properties that have classes that implement the
Connector
interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
void
initialize
(String[] connectorSearchPaths, URLClassLoader sharedClassLoader) Initializes the connector loader with a set of search paths to look for connectors on.List<com.seeq.link.sdk.interfaces.Connector>
loadConnectorJARs
(boolean isolateClassLoaders) Loads any JARs found on its ConnectorSearchPaths property that have classes that implement theConnector
interface, instantiates those objects and returns a list filled with them.
-
Constructor Details
-
DefaultConnectorLoader
public DefaultConnectorLoader()
-
-
Method Details
-
getConnectorSearchPaths
-
initialize
Description copied from interface:ConnectorLoader
Initializes the connector loader with a set of search paths to look for connectors on.- Specified by:
initialize
in interfaceConnectorLoader
- Parameters:
connectorSearchPaths
- An array of search paths, which may contain "glob" wildcards
-
loadConnectorJARs
Loads any JARs found on its ConnectorSearchPaths property that have classes that implement theConnector
interface, instantiates those objects and returns a list filled with them.- Specified by:
loadConnectorJARs
in interfaceConnectorLoader
- Parameters:
isolateClassLoaders
- true if each connector should be loaded with its own ClassLoader- Returns:
- A list filled with objects that implement
Connector
.
-