mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
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:
parent
1d590442d0
commit
68e850b8b8
3 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -30,6 +30,7 @@ import net.xeoh.plugins.base.PluginManager;
|
||||||
import net.xeoh.plugins.base.impl.PluginManagerFactory;
|
import net.xeoh.plugins.base.impl.PluginManagerFactory;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.mage.plugins.card.CardPluginImpl;
|
import org.mage.plugins.card.CardPluginImpl;
|
||||||
|
import org.mage.plugins.theme.ThemePluginImpl;
|
||||||
|
|
||||||
|
|
||||||
public class Plugins implements MagePlugins {
|
public class Plugins implements MagePlugins {
|
||||||
|
@ -57,7 +58,7 @@ public class Plugins implements MagePlugins {
|
||||||
pm.addPluginsFrom(new File(PLUGINS_DIRECTORY).toURI());
|
pm.addPluginsFrom(new File(PLUGINS_DIRECTORY).toURI());
|
||||||
this.cardPlugin = new CardPluginImpl();
|
this.cardPlugin = new CardPluginImpl();
|
||||||
this.counterPlugin = pm.getPlugin(CounterPlugin.class);
|
this.counterPlugin = pm.getPlugin(CounterPlugin.class);
|
||||||
this.themePlugin = pm.getPlugin(ThemePlugin.class);
|
this.themePlugin = new ThemePluginImpl();
|
||||||
logger.info("Done.");
|
logger.info("Done.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ public class CardPluginImpl implements CardPlugin {
|
||||||
|
|
||||||
@PluginLoaded
|
@PluginLoaded
|
||||||
public void newPlugin(CardPlugin plugin) {
|
public void newPlugin(CardPlugin plugin) {
|
||||||
|
log.info(plugin.toString() + " has been loaded.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue