org.teiid.connector.api
Interface ConnectorEnvironment

All Superinterfaces:
java.util.concurrent.Executor

public interface ConnectorEnvironment
extends java.util.concurrent.Executor

The environment provided to a connector by the Connector Manager. The environment provides access to external resources the Connector writer may need.


Method Summary
 java.lang.String getConnectorName()
          Get the name of the connector binding, as exposed in the console.
 ILanguageFactory getLanguageFactory()
          Obtain a reference to the default LanguageFactory that can be used to construct new language interface objects.
 ConnectorLogger getLogger()
          Obtain a reference to the logger that can be used to add messages to the MetaMatrix log files for debugging and error recovery.
 java.util.Properties getProperties()
          Get all configuration properties provided in the Connector Binding for this connector instance.
 TypeFacility getTypeFacility()
          Obtain a reference to the type facility, which can be used to perform many type conversions supplied by the Connector API.
 
Methods inherited from interface java.util.concurrent.Executor
execute
 

Method Detail

getProperties

java.util.Properties getProperties()
Get all configuration properties provided in the Connector Binding for this connector instance.

Returns:
Properties for initializing the connector

getConnectorName

java.lang.String getConnectorName()
Get the name of the connector binding, as exposed in the console.

Returns:
Connector binding name

getLogger

ConnectorLogger getLogger()
Obtain a reference to the logger that can be used to add messages to the MetaMatrix log files for debugging and error recovery.

Returns:
The ConnectorLogger

getLanguageFactory

ILanguageFactory getLanguageFactory()
Obtain a reference to the default LanguageFactory that can be used to construct new language interface objects. This is typically needed when modifying the language objects passed to the connector or for testing when objects need to be created.


getTypeFacility

TypeFacility getTypeFacility()
Obtain a reference to the type facility, which can be used to perform many type conversions supplied by the Connector API.



Copyright © 2009. All Rights Reserved.