Uses of Class
com.ultikits.ultitools.abstracts.AbstractConfigEntity
Packages that use AbstractConfigEntity
Package
Description
-
Uses of AbstractConfigEntity in com.ultikits.ultitools.abstracts
Methods in com.ultikits.ultitools.abstracts with type parameters of type AbstractConfigEntityModifier and TypeMethodDescription<T extends AbstractConfigEntity>
T<T extends AbstractConfigEntity>
T<T extends AbstractConfigEntity>
List<T> UltiToolsPlugin.getConfigs(Class<T> configType) <T extends AbstractConfigEntity>
voidUltiToolsPlugin.saveConfig(String path, Class<T> configType) Saves this module's configuration registered atpaththroughsave(): only the settings the module changed since the last load or save are written, and only where the file still holds the value the module started from; every other byte of the file stays as the operator left it, and a change that cannot be written stays in memory and is named in one warning.Methods in com.ultikits.ultitools.abstracts that return AbstractConfigEntityModifier and TypeMethodDescriptionprivate AbstractConfigEntityAbstractConfigEntity.constructSibling()Constructs a fresh instance of this config class through the(String)constructor, or failing that the no-arg constructor - the two idiomsensureConstructable()proves - for the existing validation constructability precondition only. -
Uses of AbstractConfigEntity in com.ultikits.ultitools.interfaces
Methods in com.ultikits.ultitools.interfaces with type parameters of type AbstractConfigEntityModifier and TypeMethodDescription<T extends AbstractConfigEntity>
TGet config by config type.<T extends AbstractConfigEntity>
TGet config by config path and config type.<T extends AbstractConfigEntity>
voidConfigurable.saveConfig(String path, Class<T> configType) Save config by config type.Methods in com.ultikits.ultitools.interfaces that return types with arguments of type AbstractConfigEntityModifier and TypeMethodDescriptiondefault List<AbstractConfigEntity> Configurable.getAllConfigs()Methods in com.ultikits.ultitools.interfaces with parameters of type AbstractConfigEntityModifier and TypeMethodDescriptionvoidConfigChangeListener.onConfigReload(AbstractConfigEntity config) Called when the configuration is reloaded. -
Uses of AbstractConfigEntity in com.ultikits.ultitools.manager
Fields in com.ultikits.ultitools.manager declared as AbstractConfigEntityModifier and TypeFieldDescription(package private) final AbstractConfigEntityConfigBindings.Source.entityFields in com.ultikits.ultitools.manager with type parameters of type AbstractConfigEntityModifier and TypeFieldDescriptionprivate final Map<UltiToolsPlugin, Map<String, AbstractConfigEntity>> ConfigManager.InitializationBatch.beforeprivate final Set<AbstractConfigEntity> ConfigManager.InitializationBatch.entitiesprivate final Map<UltiToolsPlugin, Map<String, AbstractConfigEntity>> ConfigManager.pluginConfigMapMethods in com.ultikits.ultitools.manager with type parameters of type AbstractConfigEntityModifier and TypeMethodDescription<T extends AbstractConfigEntity>
List<T> ConfigManager.getConfigEntities(UltiToolsPlugin plugin, Class<T> type) Get all config entities by type.<T extends AbstractConfigEntity>
TConfigManager.getConfigEntity(UltiToolsPlugin plugin, Class<T> type) Get config entity.<T extends AbstractConfigEntity>
TConfigManager.getConfigEntity(UltiToolsPlugin plugin, String path, Class<T> type) Get config entity by path.Methods in com.ultikits.ultitools.manager that return types with arguments of type AbstractConfigEntityModifier and TypeMethodDescriptionConfigManager.getAllConfigEntities(UltiToolsPlugin plugin) Get all config entities for a plugin.private Map<String, AbstractConfigEntity> ConfigManager.snapshotRegisteredEntities(UltiToolsPlugin ultiToolsPlugin) Snapshots the complete config-file-path-to-entity mappingultiToolsPluginalready holds inConfigManager.pluginConfigMap, before a caller is about to register a batch of entities in one call.Methods in com.ultikits.ultitools.manager with parameters of type AbstractConfigEntityModifier and TypeMethodDescriptionprivate voidConfigManager.addConfigEntity(UltiToolsPlugin ultiToolsPlugin, AbstractConfigEntity configEntity) voidConfigManager.register(UltiToolsPlugin ultiToolsPlugin, AbstractConfigEntity configEntity) Register config entity.private voidConfigManager.registerImmediate(UltiToolsPlugin ultiToolsPlugin, AbstractConfigEntity configEntity) private voidConfigManager.warnUnparseableFileLeftAlone(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.Method parameters in com.ultikits.ultitools.manager with type arguments of type AbstractConfigEntityModifier and TypeMethodDescriptionprivate StringConfigManager.buildJsonFromConfigs(Function<AbstractConfigEntity, com.google.gson.JsonObject> extractor) Builds a JSON string from all config entities using the provided extractor function.private voidConfigManager.persistPanelBatch(List<AbstractConfigEntity> touchedEntities, List<com.google.gson.JsonObject> touchedPayloads) private voidConfigManager.reportUnsaved(Map<String, AbstractConfigEntity> configMap) (package private) static ConfigBindings.SourceConfigBindings.resolve(UltiToolsPlugin plugin, String owner, Class<? extends AbstractConfigEntity> configClass, String key) Resolveskeyon the single config entity ofconfigClassregistered forplugin.private voidConfigManager.rollBackRegisteredEntities(UltiToolsPlugin ultiToolsPlugin, Map<String, AbstractConfigEntity> entitiesToRestore) RestoresultiToolsPlugin's entry inConfigManager.pluginConfigMapto exactlyentitiesToRestore- not just the same key set, but the same path-to-entity VALUES, so a path this call replaced with a different entity before failing is restored to the entity that was actually there before the call started (seeConfigManager.snapshotRegisteredEntities(com.ultikits.ultitools.abstracts.UltiToolsPlugin)'s javadoc for why key-only retention was insufficient).private voidConfigManager.withPanelMonitors(List<AbstractConfigEntity> monitors, int index, List<AbstractConfigEntity> entities, List<com.google.gson.JsonObject> payloads) Constructors in com.ultikits.ultitools.manager with parameters of type AbstractConfigEntityModifierConstructorDescription(package private)Source(AbstractConfigEntity entity, Field field, String key) -
Uses of AbstractConfigEntity in com.ultikits.ultitools.utils
Fields in com.ultikits.ultitools.utils declared as AbstractConfigEntityModifier and TypeFieldDescriptionprivate final AbstractConfigEntityRemoteConfigHandler.Registered.entityMethods in com.ultikits.ultitools.utils with parameters of type AbstractConfigEntityModifier and TypeMethodDescription(package private) static List<RemoteConfigEntries.Entry> RemoteConfigEntries.describe(AbstractConfigEntity entity, ConfigDocument document) Builds the editable entries of one file as it is on disk.private StringRemoteConfigHandler.entityRefusal(AbstractConfigEntity entity, RemoteConfigHandler.Change change, RemoteConfigEntries.Entry entry) The entity's own check of one change: it applies the value to the declared field in memory, runs the same validators and converters a load runs, and restores every field before returning.Constructors in com.ultikits.ultitools.utils with parameters of type AbstractConfigEntityModifierConstructorDescriptionprivateRegistered(UltiToolsPlugin module, AbstractConfigEntity entity, File file)