Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | The Adapter Definition | Creating Resource Bundles | Example Resource Bundle Implementation Class
 
Example Resource Bundle Implementation Class
The following example creates lookup keys for each of the required resource bundle entries, plus an entry referencing an About page for the adapter. This About page reference assumes there is a file called AdapterAbout.txt in MyAdapter\pub. A production adapter would probably have a more complex directory structure under the pub subdirectory, and would include html files instead of simple text files.
package com.mycompany.adapter.myadapter;
import java.util.ListResourceBundle;
import com.wm.adk.ADKGLOBAL;
public class MyAdapterResourceBundle extends ListResourceBundle
{
static final Object[][] contents =
{
{MyAdapter.ADAPTER_NAME + ADKGLOBAL.RESOURCEBUNDLEKEY_DISPLAYNAME,
"My Adapter"}
,{MyAdapter.ADAPTER_NAME + ADKGLOBAL.RESOURCEBUNDLEKEY_DESCRIPTION,
"Simple demonstration adapter"}
,{MyAdapter.ADAPTER_NAME + ADKGLOBAL.RESOURCEBUNDLEKEY_VENDORNAME,
"My Company, Inc."}
,{MyAdapter.ADAPTER_NAME + ADKGLOBAL.RESOURCEBUNDLEKEY_ABOUT
+ ADKGLOBAL.RESOURCEBUNDLEKEY_HELPURL,
"MyAdapter/AdapterAbout.txt"}
,{"9999", "{0}"} // general non-localized debug message
};
public Object[][] getContents() { return contents;}
}