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 fromserverpackcreator.properties. (It is also, by historical necessity, log4j's configuration factory.)PropertyStore— the storage engineApiPropertiessits on: loads.propertiesfiles, 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
-
Class Summary Class Description ApiPlugins Manager for ServerPackCreator plugins. CustomXMLConfiguration Custom XmlConfiguration to pass our custom log4j2.xml config to log4j. ApiProperties Base settings of ServerPackCreator, such as working directories, default list of clientside-only mods, default list of directories to include in a server pack, script templates, java paths and much more. ApiWrapper API wrapper, allowing you to conveniently initialize, setup and use the different aspects of ServerPackCreator. PropertyStore Property-storage core of ServerPackCreator: loads properties-files with blank-value filtering, offers typed accessors with define-if-absent-semantics, manages custom user-properties under a dedicated prefix, and saves the merged state back to every tracked file. -
Object Summary Object Description Companion The singleton accessor and the api()factory that builds and optionally sets up the collaborator graph.