Class PluginContext
java.lang.Object
tech.guilhermekaua.spigotboot.core.context.PluginContext
- All Implemented Interfaces:
Context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()<T> @NotNull List<T>getBeansByType(@NotNull Class<T> type) voidbooleanvoidregisterBean(@NotNull Class<?> clazz) voidregisterBean(@NotNull Object instance) voidregisterShutdownHook(@NotNull Runnable runnable) voidsetModulesToLoad(@NotNull List<Class<? extends Module>> modulesToLoad) voidunregisterShutdownHook(@NotNull Runnable runnable)
-
Constructor Details
-
PluginContext
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceContext
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceContext
-
registerBean
- Specified by:
registerBeanin interfaceContext
-
registerBean
- Specified by:
registerBeanin interfaceContext
-
getBeansByType
- Specified by:
getBeansByTypein interfaceContext
-
destroy
public void destroy() -
getModulesToLoad
- Specified by:
getModulesToLoadin interfaceContext
-
setModulesToLoad
- Specified by:
setModulesToLoadin interfaceContext
-
registerShutdownHook
- Specified by:
registerShutdownHookin interfaceContext
-
unregisterShutdownHook
- Specified by:
unregisterShutdownHookin interfaceContext
-