Package studio.magemonkey.codex.modules
Class ModuleManager<P extends CodexPlugin<P>>
java.lang.Object
studio.magemonkey.codex.modules.ModuleManager<P>
- All Implemented Interfaces:
studio.magemonkey.codex.manager.api.Loadable
public class ModuleManager<P extends CodexPlugin<P>>
extends Object
implements studio.magemonkey.codex.manager.api.Loadable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadFromFile(File jar) voidregisterExternal(IExternalModule.LoadPriority priority) voidsetup()voidshutdown()voidunregister(IModule<?> module) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.magemonkey.codex.manager.api.Loadable
reload
-
Constructor Details
-
ModuleManager
-
-
Method Details
-
setup
public void setup()- Specified by:
setupin interfacestudio.magemonkey.codex.manager.api.Loadable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacestudio.magemonkey.codex.manager.api.Loadable
-
register
- Parameters:
module- Module instance.- Returns:
- An object instance of registered module. Returns NULL if module hasn't been registered.
-
registerExternal
-
unregister
-
getModule
-
getModule
-
getModules
-
loadFromFile
-