IBM WebSphere Adapters Network Card User Manual


 
setDescription(WBIMetadataDiscoveryImpl.getPropertyDescription
("ConnectionType"));
setId("TwineBall");
setDisplayName(WBIMetadataDiscoveryImpl.getPropertyName
("ConnectionType"));
}
createInboundConnectionConfiguration
The createInboundConnectionConfiguration() method returns an instance of
InboundConnectionConfiguration. Each enterprise metadata discovery
implementation extends WBIInboundConnectionConfugurationImpl and an instance
of that class is returned in this method.
public InboundConnectionConfiguration createInboundConnectionConfiguration() {
try {
if (conf == null)
conf = new TwineBallInboundConnectionConfiguration(this);
} catch (MetadataException e) {
throw new RuntimeException(e);
}
return conf;
}
WBIOutboundConnectionConfigurationImpl samples:
You use this class to specify outbound connection configuration properties,
including those for ResourceAdapter and ManangedConnectionFactory, for your
enterprise metadata discovery implementation.
Extending WBIOutboundConnectionConfigurationImpl requires that you implement
the methods described below. Note that all methods that create instances of
property groups should initialize them with the applied properties. You can do this
with a utility method provided in the EMDUtil class as shown below after
successfully constructing the property group.
if (getAppliedProperties() != null)
EMDUtil.copyValues(getAppliedProperties(), adapterProp);
Constructor
The constructor accepts ConnectionType.
public TwineBallOutboundConnectionConfiguration
(WBIOutboundConnectionTypeImpl connType)
throws MetadataException {
super(connType);
}
createUnifiedProperties
The createUnifiedProperties() method returns an instance of property group that
represents ManagedConnectionFactory and ResourceAdapter properties together in a
consolidated property group. Property groups required for discovery might differ
from those needed at run time. Accordingly, this method can check
isSupportedInMetadataService and then create the corresponding property groups.
WebSphere Integration Developer uses this method to display the first connection
configuration screen for enterprise metadata discovery.
public PropertyGroup createUnifiedProperties() {
WBIPropertyGroupImpl propGroup = null;
try {
propGroup =
144 WebSphere Adapters: WebSphere Adapter Toolkit User Guide