Interface MapExpansionDescriptionLoader
- All Superinterfaces:
Function<JarFile,ExpansionDescription>
- All Known Implementing Classes:
BukkitConfigExpansionDescriptionLoader,GsonExpansionDescriptionLoader,InputStreamExpansionDescriptionLoader,PropertiesExpansionDescriptionLoader
The factory that loads the
ExpansionDescription from the information map of the jar file.
The map should have:
- name: the name of the expansion
- version: the version of the expansion
- main: the main class of the expansion
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExpansionDescriptionapplyAsMap(JarFile jarFile) Load the information map from the jar file
-
Method Details
-
applyAsMap
Load the information map from the jar file- Parameters:
jarFile- the jar file- Returns:
- the information map
-
apply
- Specified by:
applyin interfaceFunction<JarFile,ExpansionDescription>
-