Methods Summary |
---|
public static final JMSVendorAdapter | getJMSVendorAdapter()
AxisProperties.setClassDefault(JMSVendorAdapter.class,
VENDOR_PKG + ".JNDIVendorAdapter");
return (JMSVendorAdapter)AxisProperties.newInstance(JMSVendorAdapter.class);
|
public static final JMSVendorAdapter | getJMSVendorAdapter(java.lang.String vendorId)
// check to see if the adapter has already been instantiated
if (s_adapters.containsKey(vendorId))
return (JMSVendorAdapter)s_adapters.get(vendorId);
// create a new instance
JMSVendorAdapter adapter = null;
try
{
Class vendorClass = Class.forName(getVendorAdapterClassname(vendorId));
adapter = (JMSVendorAdapter)vendorClass.newInstance();
}
catch (Exception e)
{
return null;
}
synchronized (s_adapters)
{
if (s_adapters.containsKey(vendorId))
return (JMSVendorAdapter)s_adapters.get(vendorId);
if (adapter != null)
s_adapters.put(vendorId, adapter);
}
return adapter;
|
private static java.lang.String | getVendorAdapterClassname(java.lang.String vendorId)
StringBuffer sb = new StringBuffer(VENDOR_PKG).append(".");
sb.append(vendorId);
sb.append("VendorAdapter");
return sb.toString();
|