1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-23 16:00:09 -08:00

Remove abacus dependency from PluginManager.

This commit is contained in:
Danila Fedorin 2017-07-30 14:42:06 -07:00
parent 1c31efa577
commit 127644ea46
2 changed files with 2 additions and 9 deletions

View File

@ -62,7 +62,7 @@ public class Abacus {
* Creates a new instance of the Abacus calculator.
*/
public Abacus(){
pluginManager = new PluginManager(this);
pluginManager = new PluginManager();
mainUi = new Window(this);
numberReducer = new NumberReducer(this);
configuration = new ConfigurationObject(CONFIG_FILE);

View File

@ -1,6 +1,5 @@
package org.nwapw.abacus.plugin;
import org.nwapw.abacus.Abacus;
import org.nwapw.abacus.function.Function;
import org.nwapw.abacus.function.Operator;
import org.nwapw.abacus.number.NumberInterface;
@ -53,17 +52,11 @@ public class PluginManager {
* The list of plugin listeners attached to this instance.
*/
private Set<PluginListener> listeners;
/**
* The instance of Abacus that is used to interact with its other
* components.
*/
private Abacus abacus;
/**
* Creates a new plugin manager.
*/
public PluginManager(Abacus abacus){
this.abacus = abacus;
public PluginManager(){
loadedPluginClasses = new HashSet<>();
plugins = new HashSet<>();
cachedFunctions = new HashMap<>();