Class IsolatedConnectorProviderBase
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
org.odpi.openmetadata.frameworks.connectors.IsolatedConnectorProviderBase
- All Implemented Interfaces:
AuditLoggingComponent
IsolatedConnectorProviderBase provides extensions to ConnectorProviderBase that uses a custom class loader to
load the connector class in getConnector. This custom class loader give preference to the classes in the
same JAR file as the connector provider's implementation over other classes on the class path.
Note:
this process assumes that the connector class is not already loaded through a reference in the connector providers
implementation - ie private static final String connectorClassName should be set to a literal string.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
auditLog, connectorInterfaces, connectorTypeBean
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
supportedConfigurationProperties, supportedTechnologyTypes, supportedTemplateTypes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
Use a custom class loader to favour classes that are located in the connector implementation's JAR file.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
equals, getConnector, getConnector, getConnectorClassName, getConnectorComponentDescription, getConnectorType, getConnectorTypeProperties, getNewConnectorGUID, hashCode, setAuditLog, setConnectorClassName, setConnectorComponentDescription, setConnectorTypeProperties, toString
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
getSupportedConfigurationProperties, getSupportedTechnologyTypes, getSupportedTemplateTypes
-
Constructor Details
-
IsolatedConnectorProviderBase
public IsolatedConnectorProviderBase()
-
-
Method Details
-
getClassForConnector
Use a custom class loader to favour classes that are located in the connector implementation's JAR file.- Overrides:
getClassForConnector
in classConnectorProviderBase
- Returns:
- class
- Throws:
ClassNotFoundException
- unable to locate a class by that name on the class path
-