return getClass().getClassLoader();
}
});
if (loader instanceof PluginClassLoader) {
final PluginDescriptor descr = ((PluginClassLoader) loader).getDeclaringPluginDescriptor();
descr.addListener(new PluginListener());
}
}
/**
* Sets the device this driver is to control.