org.teiid.connector.basic
Class BasicConnector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicConnector
public BasicConnector()
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.