the managed connection factory types that are supported by the adapter. Each
managed connection factory maps to an instance of outbound connection types.
Each enterprise metadata discovery implementation should extend
WBIOutboundConnectionTypeImpl
and implement the methods described below.
Constructor
The constructor takes the
adapterType
argument, and then sets the ID, and the
description and display names. If the description and display names must be
globalized, they can be retrieved from the resource bundle
EMD.properties
using
the method
WBIMetadataDiscoveryImpl.getString(<prop name>)
.
public TwineBallOutboundConnectionType(WBIAdapterTypeImpl adapterType)
throws MetadataException {
super(adapterType);
setDescription(WBIMetadataDiscoveryImpl.getPropertyDescription
("ConnectionType"));
setDisplayName(WBIMetadataDiscoveryImpl.getPropertyName
("ConnectionType"));
setId("TwineBall");
}
createOutboundConnectionConfiguration
The
createOutboundConnectionConfiguration()
method returns an instance of
OutboundConnectionConfiguration
. Each enterprise metadata discovery
implementation must extend
WBIOutboundConnectionConfugurationImpl
and an
instance of that class should be returned in this method.
public OutboundConnectionConfiguration
createOutboundConnectionConfiguration() {
if (conf == null) { //so we can return the same config later
try {
conf = new TwineBallOutboundConnectionConfiguration(this);
} catch (MetadataException e) {
throw new RuntimeException(e);
}
}
return conf;
}
WBIInboundConnectionTypeImpl samples:
WBIInboundConnectionTypeImpl represents the inbound connection types
supported by the adapter. The mapping of connection types corresponds to the
activationSpec
types that are supported by the adapter. Each
activationSpec
will
map to an instance of inbound connection types.
Each enterprise metadata discovery implementation should extend
WBIInboundConnectionTypeImpl
and implement the methods described below.
Constructor
The constructor takes the
adapterType
argument, setting the ID and the description
and display names. You can retrieve the description and display names from the
resource bundle
EMD.properties
using method
WBIMetadataDiscoveryImpl.getString(<prop name>)
(if they must be globalized).
public TwineBallInboundConnectionType(WBIAdapterTypeImpl adapterType)
throws MetadataException {
super(adapterType);
WebSphere Adapter development overview
143
Summary of Contents for WebSphere Adapters
Page 2: ......
Page 6: ...iv WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 220: ...214 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 224: ...218 WebSphere Adapters WebSphere Adapter Toolkit User Guide...
Page 225: ......
Page 226: ...Printed in USA...