mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-17 16:09:32 -08:00
Remove abacus dependency from PluginManager.
This commit is contained in:
parent
1c31efa577
commit
127644ea46
|
@ -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);
|
||||
|
|
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue
Block a user