public final class Framework
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Framework.FrameworkBuilder |
Modifier and Type | Method and Description |
---|---|
static Framework.FrameworkBuilder |
builder()
Initialize a new instance of FrameworkBuilder
|
java.lang.String |
getCommandPrefix()
Get the application's main command prefix.
|
java.util.Map<java.lang.Class<?>,ConfigInfo> |
getConfigs()
Get user defined configs for addons
|
CustomLang |
getCustomLang()
Custom language data, not necessarily related to overriding defaults.
|
java.lang.String |
getFileDir()
Get the directory files will be put in.
|
java.util.List<FileData> |
getFiles()
Get information on all files that need to be made
|
com.google.inject.Injector |
getInjector()
Get the project's initial injector
|
ConfigInfo |
getLangConfig()
Info about custom lang config, used if default is overridden.
|
MainBinding |
getMain()
Get the main instance
|
java.lang.String |
getPckg()
Get the projects package
|
java.lang.String[] |
getPckgExclusions()
Get any packages that should be excluded when scanning
|
java.util.List<java.lang.Class<? extends ShutdownRegisterable>> |
getShutdownRegisterables()
Get all manually inputted ShutdownRegisterables
|
java.util.List<RegisterableData> |
getStartupRegisterables()
Get all manually inputted StartupRegisterables
|
int |
getThreads()
Get the amount of threads to be stored in the default task manager's thread pool
|
FrameworkBootstrap |
init()
Start the bootstrap process with the current framework configuration.
|
boolean |
isDebug()
Whether to log debug messages.
|
boolean |
overrideLangFile()
Whether to override default language files with a custom one.
|
public static Framework.FrameworkBuilder builder()
public FrameworkBootstrap init()
public MainBinding getMain()
public java.lang.String getPckg()
public java.lang.String[] getPckgExclusions()
public com.google.inject.Injector getInjector()
public java.util.List<RegisterableData> getStartupRegisterables()
public java.util.List<java.lang.Class<? extends ShutdownRegisterable>> getShutdownRegisterables()
public java.lang.String getCommandPrefix()
public java.util.List<FileData> getFiles()
public int getThreads()
public java.util.Map<java.lang.Class<?>,ConfigInfo> getConfigs()
public java.lang.String getFileDir()
public boolean overrideLangFile()
public ConfigInfo getLangConfig()
public CustomLang getCustomLang()
public boolean isDebug()