Package de.griefed.serverpackcreator.api.settings
The settings, broken into focused groups.
ApiProperties used to be one enormous class; its settings now live in these cohesive groups, each owning one concern and persisting itself through an injected save-callback.
PathsConfig— the home-directory and every path derived from it (configs, logs, manifests, work, modpacks, server-files, plugins, server-packs, Tomcat).GenerationConfig— generation knobs: the client-only mod lists + whitelist, directory in-/exclusions, cleanup files, ZIP exclusions, the exclusion-filter and Aikar's flags. This is the file the clientside-tooling edits when a mod is accepted.JavaConfig— which Java to use for installs and per-version script-variables.ScriptTemplatesConfig— the start-/java-script templates used during generation.I18nConfig— language/locale handling (parses the stored locale, feeds the i18n4k runtime).LoggingConfig— the log-level (the log4j-XML machinery itself stays inApiProperties).UpdateConfig— update/release tracking and the URL the fallback mod-lists refresh from.WebserviceConfig— web-service settings: the MongoDB URI (with legacy migration) and the cron schedules for its cleanup/refresh jobs.
See: Description
-
Class Summary Class Description GenerationConfig Settings-group for server pack generation: clientside-mod lists and their whitelist, directory in- and exclusions, pre- and post-install cleanup-files, ZIP-archive exclusions, the clientside-mod exclusion-filter, generation-flags and Aikar's flags. I18nConfig Settings-group for ServerPackCreators language: parses the stored language-property into a locale, propagates every change to the given i18n4k-configuration, and persists locale-changes via the injected saveToDisk-callback. JavaConfig Settings-group for Java-installations used by ServerPackCreator: the Java for modloader-server installs with validation and system-fallback, the per-version java-paths for script-variables, and the script-autoupdate flag. LoggingConfig Settings-group for ServerPackCreators log-level: stores the level uppercased and applies every change via the injected applyLogLevel-callback. NetworkConfig Settings-group for the timeouts applied to every outbound HTTP call ServerPackCreator makes. PathsConfig Settings-group for ServerPackCreators home-directory and every directory and file derived from it: configs, logs, manifests, work/temp, modpacks, server-files with the default templates, plugins, the server-packs directory with its override, and the Tomcat-directories of the webservice. ScriptTemplatesConfig Settings-group for the start- and java-script-templates used during server pack generation: the per-type template-maps stored under prefixed property-keys, their defaults inside the server_files-directory, and the deprecated list-based template-handling. UpdateConfig Settings-group for update- and release-tracking: the URL from which the fallback mod-lists are refreshed, the pre-release version-check flag, the old-version used for migrations, and the fallback-list update itself. WebserviceConfig Settings-group for the web-service side of ServerPackCreator: the MongoDB database-URI with legacy-value migration and scheme-normalization, plus the cron-schedules of the webservice's cleanup- and refresh-jobs.