Package me.hsgamer.hscore.addon.loader
Interface MapAddonDescriptionLoader
- All Superinterfaces:
AddonDescriptionLoader
- All Known Implementing Classes:
InputStreamAddonDescriptionLoader,PropertiesAddonDescriptionLoader
The simplified
AddonDescriptionLoader that loads the AddonDescription from the information map of the jar file.
The map should have:
- name: the name of the addon
- version: the version of the addon
- main: the main class of the addon
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddonDescriptionLoadAddonDescriptionfrom jar fileLoad the information map from the jar file
-
Method Details
-
loadAsMap
Load the information map from the jar file- Parameters:
jarFile- the jar file- Returns:
- the information map
- Throws:
IOException- if an I/O error occursInvalidAddonDescription- if the information map is invalid
-
load
Description copied from interface:AddonDescriptionLoaderLoadAddonDescriptionfrom jar file- Specified by:
loadin interfaceAddonDescriptionLoader- Parameters:
jarFile- the jar file- Returns:
- the
AddonDescription - Throws:
IOException- if an I/O error occursInvalidAddonDescription- if theAddonDescriptionis invalid
-