+ /* stop the core. */
+ core.stop();
+
+ /* stop the web of trust connector. */
+ webOfTrustConnector.stop();
+ } catch (Throwable t1) {
+ logger.log(Level.SEVERE, "Error while shutting down!", t1);
+ } finally {
+ deregisterLoggerHandlers();
+ }
+ }
+
+ private void deregisterLoggerHandlers() {
+ for (Handler handler : soneLogger.getHandlers()) {
+ soneLogger.removeHandler(handler);
+ }
+ }
+
+ //
+ // INTERFACE FredPluginFCP
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void handle(PluginReplySender pluginReplySender, SimpleFieldSet parameters, Bucket data, int accessType) {
+ fcpInterface.handle(pluginReplySender, parameters, data, accessType);
+ }
+
+ //
+ // INTERFACE FredPluginL10n
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getString(String key) {
+ return l10n.getBase().getString(key);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void setLanguage(LANGUAGE newLanguage) {
+ l10n = new PluginL10n(this, newLanguage);
+ }
+
+ //
+ // INTERFACE FredPluginBaseL10n
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getL10nFilesBasePath() {
+ return "i18n";
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getL10nFilesMask() {
+ return "sone.${lang}.properties";
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getL10nOverrideFilesMask() {
+ return "sone.${lang}.override.properties";
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ClassLoader getPluginClassLoader() {
+ return SonePlugin.class.getClassLoader();
+ }
+
+ //
+ // INTERFACE FredPluginVersioned
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getVersion() {
+ return getPluginVersion();