Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Listener Notifications | Listener Implementation | Registering Listeners in the WmAdapter Implementation Class
 
Registering Listeners in the WmAdapter Implementation Class
You must register each listener class in the WmAdapter implementation class. You do this by passing the class name to the AdapterTypeInfo.addListenerType method in the WmAdapter.fillAdapterTypeInfo method in the WmAdapter implementation class. In the example, the listener class SimpleListener is registered in the adapter implementation class MyAdapter:
package com.wm.MyAdapter;
..
..
import com.wm.MyAdapter.listeners.SimpleListener;
..
..
public class MyAdapter extends WmAdapter implements MyAdapterConstants {
..
..
public void fillAdapterTypeInfo(AdapterTypeInfo info, Locale locale)
{
..
..
info.addListenerType(SimpleListener.class.getName());
}
}