remove old bundled mage-theme-plugin.jar

which causes plugin loading to consistently fail, so switch back to
directly instantiating ThemePluginImpl()

this is a little unfortunate, because these plugins don't get the same
lifecycle handling as external ones

re: c25e45095e
This commit is contained in:
Neil Gentleman 2015-11-15 15:26:44 -08:00
parent 1d590442d0
commit 68e850b8b8
3 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,7 @@ import net.xeoh.plugins.base.PluginManager;
import net.xeoh.plugins.base.impl.PluginManagerFactory;
import org.apache.log4j.Logger;
import org.mage.plugins.card.CardPluginImpl;
import org.mage.plugins.theme.ThemePluginImpl;
public class Plugins implements MagePlugins {
@ -57,7 +58,7 @@ public class Plugins implements MagePlugins {
pm.addPluginsFrom(new File(PLUGINS_DIRECTORY).toURI());
this.cardPlugin = new CardPluginImpl();
this.counterPlugin = pm.getPlugin(CounterPlugin.class);
this.themePlugin = pm.getPlugin(ThemePlugin.class);
this.themePlugin = new ThemePluginImpl();
logger.info("Done.");
}

View file

@ -81,6 +81,7 @@ public class CardPluginImpl implements CardPlugin {
@PluginLoaded
public void newPlugin(CardPlugin plugin) {
log.info(plugin.toString() + " has been loaded.");
}
@Override