org.teiid.connector.basic
Class BasicConnector

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnector
All Implemented Interfaces:
Connector
Direct Known Subclasses:
Connector, JDBCConnector, LDAPConnector, LoggingConnector, LoopbackConnector, ObjectConnector, TextConnector, XMLSourceConnector

public abstract class BasicConnector
extends java.lang.Object
implements Connector


Constructor Summary
BasicConnector()
           
 
Method Summary
 boolean areAdminConnectionsAllowed()
           
 ConnectorIdentity createIdentity(ExecutionContext context)
          Create an identity object based on a security context.
 java.lang.String getConnectorName()
           
 void setAdminConnectionsAllowed(boolean adminConnectionsAllowed)
           
 void setConnectorName(java.lang.String connectorName)
           
 void setUseCredentialMap(boolean useCredentialMap)
           
 void start(ConnectorEnvironment environment)
          Start the connector with the connector environment.
 boolean useCredentialMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.teiid.connector.api.Connector
getCapabilities, getConnection, stop
 

Constructor Detail

BasicConnector

public BasicConnector()
Method Detail

start

public void start(ConnectorEnvironment environment)
           throws ConnectorException
Description copied from interface: Connector
Start the connector with the connector environment. The environment provides access to external resources the connector implementation may need to use.

Specified by:
start in interface Connector
Parameters:
environment - The connector environment, provided by the Connector Manager
Throws:
ConnectorException

createIdentity

public ConnectorIdentity createIdentity(ExecutionContext context)
                                 throws ConnectorException
Description copied from interface: Connector
Create an identity object based on a security context. If single identity is not supported then an exception should be thrown when a null context is supplied. Implementors of this class may use a different implementation of the ConnectorIdentity interface to similarly affect pooling.

Specified by:
createIdentity in interface Connector
Parameters:
context - The context provided by the Connector Manager
Returns:
The associated connector identity
Throws:
ConnectorException - If a null context is not accepted or an error occurs while creating the identity.

getConnectorName

public java.lang.String getConnectorName()

setConnectorName

public void setConnectorName(java.lang.String connectorName)

useCredentialMap

public boolean useCredentialMap()

setUseCredentialMap

public void setUseCredentialMap(boolean useCredentialMap)

areAdminConnectionsAllowed

public boolean areAdminConnectionsAllowed()

setAdminConnectionsAllowed

public void setAdminConnectionsAllowed(boolean adminConnectionsAllowed)


Copyright © 2009. All Rights Reserved.