Class ModuleHost
java.lang.Object
com.ultikits.ultitools.manager.ModuleHost
- All Implemented Interfaces:
PluginHost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoaderprivate List<AbstractConfigEntity> private final PluginManagerprivate booleanprivate final UltiToolsPluginprivate booleanprivate final Class<? extends UltiToolsPlugin> -
Constructor Summary
ConstructorsConstructorDescriptionModuleHost(PluginManager manager, UltiToolsPlugin plugin, Class<? extends UltiToolsPlugin> sourceType, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate()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.voidcompleteActivation(RegistrationLedger lifetime) (package private) voidconfigureDetach(boolean sharedName, boolean warnUnsaved) createDataScope(PluginCodeSource source) manager()name()(package private) UltiToolsPluginplugin()voidprepare(RegistrationLedger lifetime) publishMessages(SimpleContainer context, SimpleContainer parent, PluginCodeSource source, RegistrationLedger lifetime) voidrecordActivationCleanup(RegistrationLedger activation, RegistrationLedger lifetime) voidvoidrecordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) voidvoidregisterCommands(CommandManager commands, RegistrationLedger ledger) Module activation already records unregisterSelf(), which releases commands and listeners.voidregisterEventHandler(EventBus events, Class<? extends ModuleEvent> type, ModuleEventHandler annotation, Method method, Object bean) voidregisterListeners(ListenerManager listeners, RegistrationLedger ledger) voidregisterScheduled(TaskManager tasks, Object bean) voidvoidscan(SimpleContainer context, PluginCodeSource source) String[]Class<? extends UltiToolsPlugin> voidvalidateConfig(SimpleContainer context) version()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PluginHost
codeSource, reportAttachment
-
Field Details
-
manager
-
plugin
-
sourceType
-
classLoader
-
nameStillInUse
private boolean nameStillInUse -
reportUnsaved
private boolean reportUnsaved -
configEntities
-
-
Constructor Details
-
ModuleHost
ModuleHost(PluginManager manager, UltiToolsPlugin plugin, Class<? extends UltiToolsPlugin> sourceType, ClassLoader classLoader)
-
-
Method Details
-
plugin
UltiToolsPlugin plugin() -
configureDetach
void configureDetach(boolean sharedName, boolean warnUnsaved) -
manager
- Specified by:
managerin interfacePluginHost
-
sourceType
- Specified by:
sourceTypein interfacePluginHost
-
classLoader
- Specified by:
classLoaderin interfacePluginHost
-
name
- Specified by:
namein interfacePluginHost
-
version
- Specified by:
versionin interfacePluginHost
-
dataFolder
- Specified by:
dataFolderin interfacePluginHost
-
ownerToken
- Specified by:
ownerTokenin interfacePluginHost
-
scanPackages
- Specified by:
scanPackagesin interfacePluginHost
-
additionalEntities
- Specified by:
additionalEntitiesin interfacePluginHost
-
prepare
- Specified by:
preparein interfacePluginHost
-
bindSelf
Description copied from interface:PluginHostBind only the host's own class chain and its Plugin or UltiToolsPlugin API, not incidental interfaces.- Specified by:
bindSelfin interfacePluginHost
-
recordHostSpecificCleanup
- Specified by:
recordHostSpecificCleanupin interfacePluginHost
-
createDataScope
- Specified by:
createDataScopein interfacePluginHost
-
attachDataScope
- Specified by:
attachDataScopein interfacePluginHost
-
publishMessages
public Runnable publishMessages(SimpleContainer context, SimpleContainer parent, PluginCodeSource source, RegistrationLedger lifetime) - Specified by:
publishMessagesin interfacePluginHost
-
beforeScan
public void beforeScan(SimpleContainer context, PluginCodeSource source, RegistrationLedger lifetime) - Specified by:
beforeScanin interfacePluginHost
-
scan
- Specified by:
scanin interfacePluginHost
-
afterScan
- Specified by:
afterScanin interfacePluginHost
-
afterRefresh
- Specified by:
afterRefreshin interfacePluginHost
-
validateConfig
- Specified by:
validateConfigin interfacePluginHost
-
activate
- Specified by:
activatein interfacePluginHost- Throws:
IOException
-
recordActivationCleanup
- Specified by:
recordActivationCleanupin interfacePluginHost
-
recordRegistryCleanup
- Specified by:
recordRegistryCleanupin interfacePluginHost
-
recordManualCleanup
public void recordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) - Specified by:
recordManualCleanupin interfacePluginHost
-
completeActivation
- Specified by:
completeActivationin interfacePluginHost
-
registerScheduled
- Specified by:
registerScheduledin interfacePluginHost
-
registerEventHandler
public void registerEventHandler(EventBus events, Class<? extends ModuleEvent> type, ModuleEventHandler annotation, Method method, Object bean) - Specified by:
registerEventHandlerin interfacePluginHost
-
autoRegisterCommands
public boolean autoRegisterCommands()- Specified by:
autoRegisterCommandsin interfacePluginHost
-
autoRegisterListeners
public boolean autoRegisterListeners()- Specified by:
autoRegisterListenersin interfacePluginHost
-
registerCommands
Module activation already records unregisterSelf(), which releases commands and listeners.- Specified by:
registerCommandsin interfacePluginHost
-
registerListeners
- Specified by:
registerListenersin interfacePluginHost
-
reportResourceRegistration
public void reportResourceRegistration()- Specified by:
reportResourceRegistrationin interfacePluginHost
-