com.ibm.j2ca.extension.emd.discovery
Class WBIAdapterTypeImpl

java.lang.Object
  extended bycom.ibm.j2ca.extension.emd.discovery.WBIAdapterTypeImpl
All Implemented Interfaces:
commonj.connector.metadata.discovery.AdapterType, commonj.connector.metadata.discovery.AdapterTypeSummary

public class WBIAdapterTypeImpl
extends java.lang.Object
implements commonj.connector.metadata.discovery.AdapterType

Provides implementation for AdapterType interface. Uses the ResourceAdapterMetadata implementation to fetch the information about version vendor etc. for an adapter implementation

See Also:
AdapterType

Constructor Summary
WBIAdapterTypeImpl(java.lang.String className, int numberOfOutConnection, int numberOfInConnection)
          The constructor fills in the default description and name from the ResourceAdapter Metadata class.
 
Method Summary
 void addInboundConnectionType(WBIInboundConnectionTypeImpl connType)
          Add the inbound connection type to the list
 void addOutboundConnectionType(WBIOutboundConnectionTypeImpl connType)
          Add the outbound connection type to the list
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getId()
           
 commonj.connector.metadata.discovery.connection.InboundConnectionType[] getInboundConnectionTypes()
           
 commonj.connector.metadata.discovery.connection.OutboundConnectionType[] getOutboundConnectionTypes()
           
 java.lang.String getVendor()
           
 java.lang.String getVersion()
           
 boolean hasMetadataConnectionTypes()
          This is true by default.
 void setDescription(java.lang.String description)
           
 void setDisplayName(java.lang.String displayName)
          Set the display name
 void setHasMetadataConnectionTypes(boolean hasMetadataConnection)
          If there is a need to have adapter type which is not used for discovery then this should be set as false.
 void setId(java.lang.String id)
           
 void setVendor(java.lang.String vendor)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WBIAdapterTypeImpl

public WBIAdapterTypeImpl(java.lang.String className,
                          int numberOfOutConnection,
                          int numberOfInConnection)
                   throws commonj.connector.metadata.MetadataException
The constructor fills in the default description and name from the ResourceAdapter Metadata class. The number of inbound and outbound connections help in initialization of the array objects.

Parameters:
numberOfOutConnection -
numberOfInConnection -
Throws:
commonj.connector.metadata.MetadataException
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.getId()

hasMetadataConnectionTypes

public boolean hasMetadataConnectionTypes()
This is true by default.

Specified by:
hasMetadataConnectionTypes in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.hasMetadataConnectionTypes()

setHasMetadataConnectionTypes

public void setHasMetadataConnectionTypes(boolean hasMetadataConnection)
If there is a need to have adapter type which is not used for discovery then this should be set as false. By default this is set as true.

Parameters:
hasMetadataConnection -

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.getDisplayName()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.getDescription()

getVendor

public java.lang.String getVendor()
Specified by:
getVendor in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.getVendor()

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface commonj.connector.metadata.discovery.AdapterTypeSummary
See Also:
AdapterTypeSummary.getVersion()

getOutboundConnectionTypes

public commonj.connector.metadata.discovery.connection.OutboundConnectionType[] getOutboundConnectionTypes()
Specified by:
getOutboundConnectionTypes in interface commonj.connector.metadata.discovery.AdapterType
See Also:
AdapterType.getOutboundConnectionTypes()

getInboundConnectionTypes

public commonj.connector.metadata.discovery.connection.InboundConnectionType[] getInboundConnectionTypes()
Specified by:
getInboundConnectionTypes in interface commonj.connector.metadata.discovery.AdapterType
See Also:
AdapterType.getInboundConnectionTypes()

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description for adapter type

setDisplayName

public void setDisplayName(java.lang.String displayName)
Set the display name

Parameters:
displayName -

setVendor

public void setVendor(java.lang.String vendor)
Parameters:
vendor - The vendor name for the adapter

setVersion

public void setVersion(java.lang.String version)
Parameters:
version - The version of the adapter

addOutboundConnectionType

public void addOutboundConnectionType(WBIOutboundConnectionTypeImpl connType)
Add the outbound connection type to the list

Parameters:
connType -

addInboundConnectionType

public void addInboundConnectionType(WBIInboundConnectionTypeImpl connType)
Add the inbound connection type to the list

Parameters:
connType -

setId

public void setId(java.lang.String id)