com.metamatrix.common.config.model
Class BasicConnectorArchive

java.lang.Object
  extended by com.metamatrix.common.config.model.BasicConnectorArchive
All Implemented Interfaces:
ConnectorArchive

public class BasicConnectorArchive
extends java.lang.Object
implements ConnectorArchive

ConnectorArchive defines a bundle a.k.a zip file for Connector Types. This bundle will package all the nessasary artifacts that would be needed by a given connector types.

Since:
4.3.2

Constructor Summary
BasicConnectorArchive()
          ctor
 
Method Summary
 void addConnectorType(ConnectorBindingType type)
          Add a Connector Type to the archive
 void addExtensionModule(ConnectorBindingType type, ExtensionModule extModule)
          Adds the Extension module to the archive.
 void addMainfestContents(byte[] contents)
          This is used by the importer to add the contents of the manifest
 ConnectorBindingType[] getConnectorTypes()
          Return the connector types in this connector archive
 ExtensionModule[] getExtensionModules(ConnectorBindingType type)
          Extention modules needed by the connector type, in order to deploy correctly in the DQP or in server.
 byte[] getManifestContents()
          Get the Manifest files contents from the CAF file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicConnectorArchive

public BasicConnectorArchive()
ctor

Method Detail

getConnectorTypes

public ConnectorBindingType[] getConnectorTypes()
Return the connector types in this connector archive

Specified by:
getConnectorTypes in interface ConnectorArchive
Returns:
connector type[]; never null
Throws:
MetaMatrixComponentException

getExtensionModules

public ExtensionModule[] getExtensionModules(ConnectorBindingType type)
Extention modules needed by the connector type, in order to deploy correctly in the DQP or in server.

Specified by:
getExtensionModules in interface ConnectorArchive
Returns:
array of extension modules; or zero length array
Throws:
MetaMatrixComponentException

addConnectorType

public void addConnectorType(ConnectorBindingType type)
Add a Connector Type to the archive

Parameters:
type - - adds to the archive

addExtensionModule

public void addExtensionModule(ConnectorBindingType type,
                               ExtensionModule extModule)
Adds the Extension module to the archive. Based on the Extension module name it will be either added to type shared or individual directories underneath the archive.

Parameters:
type -
extModule -

getManifestContents

public byte[] getManifestContents()
Description copied from interface: ConnectorArchive
Get the Manifest files contents from the CAF file

Specified by:
getManifestContents in interface ConnectorArchive
Returns:
byte[] contents of the manifest file
Since:
4.3
See Also:
ConnectorArchive.getManifestContents()

addMainfestContents

public void addMainfestContents(byte[] contents)
This is used by the importer to add the contents of the manifest



Copyright © 2009. All Rights Reserved.