Interface PluginHost
- All Known Implementing Classes:
ExternalHost, ModuleHost
A module or an external plugin participating in the same assembly.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanactivate()Class<?>[]voidafterRefresh(SimpleContainer context, RegistrationLedger lifetime) voidafterScan(SimpleContainer context, RegistrationLedger ledger) voidattachDataScope(DataScope scope, RegistrationLedger lifetime) booleanbooleanvoidbeforeScan(SimpleContainer context, PluginCodeSource source, RegistrationLedger lifetime) voidbindSelf(SimpleContainer context) Bind only the host's own class chain and its Plugin or UltiToolsPlugin API, not incidental interfaces.default PluginCodeSourcedefault voidcompleteActivation(RegistrationLedger lifetime) createDataScope(PluginCodeSource source) manager()name()default voidprepare(RegistrationLedger lifetime) publishMessages(SimpleContainer context, SimpleContainer parent, PluginCodeSource source, RegistrationLedger lifetime) default voidrecordActivationCleanup(RegistrationLedger activation, RegistrationLedger lifetime) default voidvoidrecordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) voidvoidregisterCommands(CommandManager commands, RegistrationLedger ledger) voidregisterEventHandler(EventBus events, Class<? extends ModuleEvent> eventType, ModuleEventHandler annotation, Method method, Object bean) voidregisterListeners(ListenerManager listeners, RegistrationLedger ledger) voidregisterScheduled(TaskManager tasks, Object bean) default voiddefault voidvoidscan(SimpleContainer context, PluginCodeSource source) String[]Class<?> voidvalidateConfig(SimpleContainer context) version()
-
Method Details
-
manager
PluginManager manager() -
name
String name() -
version
String version() -
dataFolder
File dataFolder() -
sourceType
Class<?> sourceType() -
classLoader
ClassLoader classLoader() -
ownerToken
Object ownerToken() -
scanPackages
String[] scanPackages() -
additionalEntities
Class<?>[] additionalEntities() -
codeSource
-
bindSelf
Bind only the host's own class chain and its Plugin or UltiToolsPlugin API, not incidental interfaces. -
recordHostSpecificCleanup
-
prepare
-
createDataScope
-
attachDataScope
-
publishMessages
Runnable publishMessages(SimpleContainer context, SimpleContainer parent, PluginCodeSource source, RegistrationLedger lifetime) -
beforeScan
-
scan
-
afterScan
-
afterRefresh
-
validateConfig
-
activate
- Throws:
IOException
-
recordActivationCleanup
-
recordRegistryCleanup
-
recordManualCleanup
void recordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) -
completeActivation
-
registerScheduled
-
registerEventHandler
void registerEventHandler(EventBus events, Class<? extends ModuleEvent> eventType, ModuleEventHandler annotation, Method method, Object bean) -
autoRegisterCommands
boolean autoRegisterCommands() -
autoRegisterListeners
boolean autoRegisterListeners() -
registerCommands
-
registerListeners
-
reportResourceRegistration
default void reportResourceRegistration() -
reportAttachment
default void reportAttachment()
-