protected Object exportListener(RemoteEventListener listener)
throws RemoteException
{
// wrap a configuration exception in a RemoteException to avoid having
// to redefine the constructors for a million subclasses of BasicListener
Exporter exporter = QAConfig.getDefaultExporter();
Configuration c = config.getConfiguration();
if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
try {
exporter = (Exporter) c.getEntry("test",
"reggieListenerExporter",
Exporter.class);
} catch (ConfigurationException e) {
throw new RemoteException("Configuration problem", e);
}
}
listenerMap.put(listener, exporter);
return exporter.export(listener);
}