Uses of Class
com.ultikits.ultitools.config.ConfigOwner
Packages that use ConfigOwner
Package
Description
Module-extensible conversion between Java values and the configuration plain-data model.
-
Uses of ConfigOwner in com.ultikits.ultitools.abstracts
Fields in com.ultikits.ultitools.abstracts declared as ConfigOwnerMethods in com.ultikits.ultitools.abstracts that return ConfigOwnerModifier and TypeMethodDescriptionstatic ConfigOwnerUltiToolsPlugin.configOwner(UltiToolsPlugin module) Adapts the module even during constructor-time registration, before its host is assembled.Methods in com.ultikits.ultitools.abstracts with parameters of type ConfigOwnerModifier and TypeMethodDescriptionfinal voidAbstractConfigEntity.initForOwner(ConfigOwner owner, boolean deferred) Binds the entity to its host, deferring initialization writes when part of a batch. -
Uses of ConfigOwner in com.ultikits.ultitools.config
Methods in com.ultikits.ultitools.config that return ConfigOwnerModifier and TypeMethodDescriptionstatic ConfigOwnerConfigOwner.forExternal(ExternalPluginAdapter adapter, @Nullable ModuleTexts texts, @Nullable PluginCodeSource source) Uses the external host's adapter identity and the source already resolved by assembly.static ConfigOwnerConfigOwner.forModule(UltiToolsPlugin module, Function<String, File> configFile) Adapts a module without changing its legacy file resolution or the lifetime of its text catalogue.(package private) static ConfigOwnerConfigOwner.forPlugin(Object token, String name, File folder, Supplier<Optional<ModuleTexts>> texts) Builds a view over the host's existing token and configuration directory. -
Uses of ConfigOwner in com.ultikits.ultitools.config.convert
Methods in com.ultikits.ultitools.config.convert with parameters of type ConfigOwnerModifier and TypeMethodDescriptionvoidConverterRegistry.checkEntityFieldsForOwner(Class<?> entity, ConfigOwner owner, String file) Checks the entity's declared types before opening the configuration file.private voidConverterRegistry.discover(ConfigOwner owner, Class<?> converterClass) static ConverterRegistryConverterRegistry.forOwner(ConfigOwner owner) Returns the prepared registry for this host token, or the framework defaults.private static ConverterRegistryConverterRegistry.prepareForOwner(ConfigOwner owner, String[] packages, ClassLoader loader) ConverterRegistry.prepareSelectedConfigsForOwner(ConfigOwner owner, String[] packages, ClassLoader loader) Prepares converters and validates the config declarations from the same host's own code source.static voidConverterRegistry.releaseForOwner(ConfigOwner owner) Drops both converter and configuration discovery caches for a detached host. -
Uses of ConfigOwner in com.ultikits.ultitools.context
Fields in com.ultikits.ultitools.context declared as ConfigOwnerFields in com.ultikits.ultitools.context with type parameters of type ConfigOwnerModifier and TypeFieldDescriptionprivate final Supplier<ConfigOwner> ComponentScanner.configOwnerMethods in com.ultikits.ultitools.context that return ConfigOwnerModifier and TypeMethodDescription(package private) ConfigOwnerSimpleContainer.conditionalConfigOwner()Methods in com.ultikits.ultitools.context with parameters of type ConfigOwnerModifier and TypeMethodDescriptionSimpleContainer.bindConditionalConfigOwner(ConfigOwner owner) Sets the scan-time owner without making the internal owner available as a bean; returns its ledger cleanup.(package private) static voidConditionalRegistrationEvaluator.clearOwner(ConfigOwner owner) private static booleanConditionalRegistrationEvaluator.evaluate(ConfigOwner owner, ConditionalOnConfig condition) The decision logic extracted from the pre-6.3.0shouldRegisterbody; since #612 the value is read with the framework's document reader (ConditionalRegistrationEvaluator.readBoolean(File, ConditionalOnConfig)).ConditionalRegistrationEvaluator.reportDriftForOwner(ConfigOwner owner, Supplier<SimpleContainer> container) Reports startup registration decisions that now disagree with this owner's files.Method parameters in com.ultikits.ultitools.context with type arguments of type ConfigOwnerModifier and TypeMethodDescription(package private) static booleanConditionalRegistrationEvaluator.shouldRegisterForOwner(Class<?> clazz, Supplier<ConfigOwner> resolveOwner) Constructor parameters in com.ultikits.ultitools.context with type arguments of type ConfigOwnerModifierConstructorDescription(package private)ComponentScanner(SimpleContainer container, @Nullable TestBeanReplacements testReplacements, Supplier<ConfigOwner> configOwner) -
Uses of ConfigOwner in com.ultikits.ultitools.manager
Fields in com.ultikits.ultitools.manager declared as ConfigOwnerMethods in com.ultikits.ultitools.manager with parameters of type ConfigOwnerModifier and TypeMethodDescriptionprivate voidConfigManager.addConfigEntity(ConfigOwner owner, AbstractConfigEntity configEntity, ConverterRegistry registry) (package private) voidPluginManager.applyReloadedConfigBindings(ConfigOwner owner, ReloadReport report) (package private) Map<String, AbstractConfigEntity> ConfigManager.getAllConfigEntitiesForOwner(ConfigOwner owner) (package private) <T extends AbstractConfigEntity>
List<T> ConfigManager.getConfigEntitiesForOwner(ConfigOwner owner, Class<T> type) (package private) static ConfigurationExceptionConfigBindings.invalidValueAtLoad(ConfigOwner configOwner, String owner, ConfigBindings.Source source, Long value, String rule) The load-time refusal for an out-of-range bound value uses the same exception type as a@Rangeviolation and never rewrites the rejected value.private static voidPluginManager.keepRunning(ConfigOwner owner, ReloadReport report, String bindingKey, Integer before, Map<String, Integer> next, Set<String> reported, String reportWhy, ErrorCode code) (package private) static ReloadReportHostReload.perform(ConfigOwner owner, Runnable reloadMessages, @Nullable Consumer<ReloadReport> moduleHook) static booleanConfigManager.permitsConfigThreadForOwner(ConfigOwner owner, String operation) Shared refusal guard for configuration operations on either kind of host.private static voidPluginManager.refreshCooldownBindings(ConfigOwner owner, ReloadReport report) (package private) voidConfigManager.refreshFrameworkCommentsForOwner(ConfigOwner owner) private static voidPluginManager.refreshOne(ConfigOwner owner, ReloadReport report, String bindingKey, Supplier<Long> source, Integer before, Map<String, Integer> next, Set<String> reported) Re-reads one bound cooldown intonext: the new value when it is valid, otherwise the running one with one WARNING per binding key -- also when the config's own reload failed.(package private) List<AbstractConfigEntity> ConfigManager.registerAllForOwner(ConfigOwner owner, String[] packages, ClassLoader loader) private Map<String, AbstractConfigEntity> ConfigManager.registeredForOwner(ConfigOwner owner, String operation) (package private) voidConfigManager.registerForOwner(ConfigOwner owner, AbstractConfigEntity configEntity) private voidConfigManager.registerForOwner(ConfigOwner owner, AbstractConfigEntity configEntity, Supplier<ConverterRegistry> converterRegistry) private voidConfigManager.registerImmediate(ConfigOwner owner, AbstractConfigEntity configEntity, Supplier<ConverterRegistry> converterRegistry) private static voidConfigManager.registerScannedConfig(ConfigOwner owner, Class<?> candidate, ConfigManager.ConfigRegistrar registrar) private voidConfigManager.registerScannedConfigs(ConfigOwner owner, Supplier<Set<Class<?>>> select, ConfigManager.ConfigRegistrar registrar) (package private) voidTaskManager.registerScheduledMethods(ConfigOwner owner, Object bean) (package private) voidConfigManager.reloadConfigsForOwner(ConfigOwner owner) private static longTaskManager.reloadedTicks(ConfigOwner owner, TaskManager.BoundTask handle, ConfigBindings.Source source, long currentTicks, Set<String> warnedKeys, ReloadReport report) static ReloadReportPluginManager.reloadHost(ConfigOwner owner, Runnable reloadMessages, @Nullable Consumer<ReloadReport> moduleHook) Entry point for the module and external plugin APIs to run the same host reload sequence.private voidConfigManager.reportUnsaved(ConfigOwner owner, Map<String, AbstractConfigEntity> configMap) (package private) voidConfigManager.reportUnsavedForOwner(ConfigOwner owner) private static voidConfigManager.requireConfigThread(ConfigOwner owner, String operation) (package private) voidTaskManager.rescheduleBound(ConfigOwner owner, ReloadReport report) private voidPluginManager.rescheduleBoundTasks(ConfigOwner owner, ReloadReport report) private voidTaskManager.rescheduleOne(ConfigOwner owner, TaskManager.BoundTask handle, ReloadReport report) (package private) static ConfigBindings.SourceConfigBindings.resolve(ConfigOwner configOwner, String owner, Class<? extends AbstractConfigEntity> configClass, String key) Resolveskeyon the single config entity ofconfigClassregistered forconfigOwner.private static ConfigBindings.SourceConfigBindings.resolve(ConfigOwner configOwner, String owner, Class<? extends AbstractConfigEntity> configClass, String key, List<? extends AbstractConfigEntity> entities) (package private) static TaskManager.BoundTaskTaskManager.BoundTask.resolveAtLoad(ConfigOwner configOwner, Object bean, Class<?> targetClass, Method method, Scheduled scheduled) Resolves and range-checks a bound method at load.private static voidPluginManager.resolveCooldownBindings(ConfigOwner configOwner, BaseCommandExecutor executor, Map<String, Integer> resolved, Map<String, Supplier<Long>> sources) Resolves every bound@CmdCDofexecutoronce, at load: shape, key, field, and range (an out-of-range value refuses the module).private static voidPluginManager.runReloadHalf(ConfigOwner owner, String what, ReloadReport report, Runnable half) private static voidHostReload.runReloadSteps(ConfigOwner owner, Runnable reloadMessages, @Nullable Consumer<ReloadReport> moduleHook, ReloadReport report) private voidTaskManager.scanAndSchedule(@Nullable ConfigOwner owner, Object bean, Scheduler scheduler, Consumer<TaskHandle> recorder) Scan one bean forScheduledmethods and schedule each valid one, recording each task in its owning bucket as soon as it is created rather than batching them into a list returned at the end.private voidTaskManager.scheduleBound(ConfigOwner owner, Object bean, Class<?> targetClass, Method method, Scheduled scheduled, Scheduler scheduler) Schedules one config-boundScheduledmethod from its resolved binding and records its handle inTaskManager.boundTasksimmediately (#410).private static longTaskManager.BoundTask.ticksAtLoad(ConfigOwner configOwner, String owner, ConfigBindings.Source source) (package private) voidConfigManager.unregisterAllForOwner(ConfigOwner owner) (package private) static voidPluginManager.validateConfigBindings(ConfigOwner owner, SimpleContainer pluginContext) (package private) static voidTaskManager.validateConfigBindings(ConfigOwner owner, Object bean) Load-time check of every config-boundScheduledmethod onbean, over exactly the methodsTaskManager.scanAndSchedule(ConfigOwner, Object, Scheduler, Consumer)would schedule.private voidConfigManager.warnUnparseableFileLeftAlone(ConfigOwner owner, AbstractConfigEntity config) Logs, at server stop, that a configuration file was left alone because the framework could not parse it the last time it read it (#510), and that any in-memory change to that configuration was therefore not written.