2019-06-02 05:03:08 +03:00
|
|
|
package pro.gravit.launcher.modules;
|
2018-09-17 10:07:32 +03:00
|
|
|
|
2019-06-02 05:03:08 +03:00
|
|
|
import pro.gravit.utils.Version;
|
2018-09-17 10:07:32 +03:00
|
|
|
|
|
|
|
public interface Module extends AutoCloseable {
|
|
|
|
|
|
|
|
String getName();
|
|
|
|
|
2018-09-22 17:22:39 +03:00
|
|
|
Version getVersion();
|
2018-09-17 10:07:32 +03:00
|
|
|
|
2018-09-17 13:14:59 +03:00
|
|
|
int getPriority();
|
2018-09-22 17:33:00 +03:00
|
|
|
|
2018-09-17 10:07:32 +03:00
|
|
|
void init(ModuleContext context);
|
2018-09-22 17:33:00 +03:00
|
|
|
|
2018-09-17 10:07:32 +03:00
|
|
|
void postInit(ModuleContext context);
|
2018-09-22 17:33:00 +03:00
|
|
|
|
2018-09-17 10:07:32 +03:00
|
|
|
void preInit(ModuleContext context);
|
2019-01-18 01:30:55 +03:00
|
|
|
|
|
|
|
default void finish(ModuleContext context) {
|
2019-04-03 16:27:40 +03:00
|
|
|
// NOP
|
2019-05-15 14:00:02 +03:00
|
|
|
}
|
2018-09-17 10:07:32 +03:00
|
|
|
}
|