Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Connections | Registering Connection Factories in the Adapter
 
Registering Connection Factories in the Adapter
You must register each connection factory class in the WmAdapter implementation class. You do this by passing the class name to the AdapterTypeInfo.addConnectionFactory method in the WmAdapter.fillAdapterTypeInfo method in WmAdapter implementation class. In the example the SimpleConnectionFactory connection factory class is registered in the MyAdapter adapter implementation class:
package com.wm.MyAdapter;
..
..
..

import com.wm.MyAdapter.connections.SimpleConnectionFactory;
..
..
..
public class MyAdapter extends WmAdapter implements MyAdapterConstants {
..
..
..
public void fillAdapterTypeInfo(AdapterTypeInfo info, Locale locale) {
info.addConnectionFactory(SimpleConnectionFactory.class.getName());
}
}