Package de.griefed.serverpackcreator.api

The core package — the front-door and the global state everyone shares.

This is where a consumer of the library starts. It owns the object-graph and the settings; the actual work (config-checking, generation, scanning) lives in the sub-packages.

  • ApiWrapper — start here. The composition root: ask it for any part of ServerPackCreator (configurationHandler, serverPackHandler, versionMeta, modScanner, …) and it lazily builds and connects them for you. Think "the factory that hands you a fully assembled ServerPackCreator".

  • ApiProperties — all the settings in one place: working directories, the default client-only mod list, default included directories, script templates, Java paths and much more. Loaded from serverpackcreator.properties. (It is also, by historical necessity, log4j's configuration factory.)

  • PropertyStore — the storage engine ApiProperties sits on: loads .properties files, gives typed get/set accessors with sensible defaults, keeps user-custom properties under their own prefix, and writes everything back to disk.

  • ApiPlugins — the plugin manager. It doesn't generate anything itself; it discovers all installed plugins and collects their extension-points so generation and the GUI can call into them.

See: Description