Class ExternalHost
java.lang.Object
com.ultikits.ultitools.manager.ExternalHost
- All Implemented Interfaces:
PluginHost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExternalPluginAdapterprivate final Class<?>[]private List<AbstractConfigEntity> private ConfigOwnerprivate ModuleTextsprivate final PluginManager -
Constructor Summary
ConstructorsConstructorDescriptionExternalHost(PluginManager manager, ExternalPluginAdapter adapter, Class<?>[] additionalEntities) -
Method Summary
Modifier and TypeMethodDescription(package private) ExternalPluginAdapteradapter()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.private static <T> voidbindType(SimpleContainer context, Class<T> type, org.bukkit.plugin.java.JavaPlugin plugin) createDataScope(PluginCodeSource source) manager()name()publishMessages(SimpleContainer context, SimpleContainer parent, PluginCodeSource source, RegistrationLedger lifetime) private voidrecordCommandCleanup(CommandManager commands, RegistrationLedger ledger) private voidrecordListenerCleanup(ListenerManager listeners, RegistrationLedger ledger) voidrecordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) voidvoidregisterCommands(CommandManager commands, RegistrationLedger ledger) 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<?> voidvalidateConfig(SimpleContainer context) version()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PluginHost
activate, codeSource, completeActivation, prepare, recordActivationCleanup, recordHostSpecificCleanup, reportResourceRegistration
-
Field Details
-
manager
-
adapter
-
additionalEntities
-
configTexts
-
configOwner
-
configEntities
-
-
Constructor Details
-
ExternalHost
ExternalHost(PluginManager manager, ExternalPluginAdapter adapter, Class<?>[] additionalEntities)
-
-
Method Details
-
adapter
ExternalPluginAdapter adapter() -
manager
- Specified by:
managerin interfacePluginHost
-
additionalEntities
- Specified by:
additionalEntitiesin interfacePluginHost
-
name
- Specified by:
namein interfacePluginHost
-
version
- Specified by:
versionin interfacePluginHost
-
dataFolder
- Specified by:
dataFolderin interfacePluginHost
-
sourceType
- Specified by:
sourceTypein interfacePluginHost
-
classLoader
- Specified by:
classLoaderin interfacePluginHost
-
ownerToken
- Specified by:
ownerTokenin interfacePluginHost
-
scanPackages
- Specified by:
scanPackagesin 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
-
bindType
private static <T> void bindType(SimpleContainer context, Class<T> type, org.bukkit.plugin.java.JavaPlugin plugin) -
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
-
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
- Specified by:
registerCommandsin interfacePluginHost
-
registerListeners
- Specified by:
registerListenersin interfacePluginHost
-
recordCommandCleanup
-
recordListenerCleanup
-
recordRegistryCleanup
- Specified by:
recordRegistryCleanupin interfacePluginHost
-
recordManualCleanup
public void recordManualCleanup(SimpleContainer context, RegistrationLedger ledger, RegistrationLedger lifetime) - Specified by:
recordManualCleanupin interfacePluginHost
-
reportAttachment
public void reportAttachment()- Specified by:
reportAttachmentin interfacePluginHost
-