Package VASSAL.build.module
Class ExtensionsLoader
java.lang.Object
VASSAL.build.module.ExtensionsLoader
- All Implemented Interfaces:
CommandEncoder
- Direct Known Subclasses:
PluginsLoader
public class ExtensionsLoader extends Object implements CommandEncoder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtensionsLoader.LoadExtensionException
-
Field Summary
Fields Modifier and Type Field Description static String
COMMAND_PREFIX
static String
EXTENSION_DIR
protected ExtensionsManager
extMgr
protected ExtensionsManager
globalExtMgr
protected Set<String>
loadedExtensions
protected HashMap<String,String>
loadedIds
static String
SPECIFY_DIR_IN_PREFS
-
Constructor Summary
Constructors Constructor Description ExtensionsLoader()
-
Method Summary
Modifier and Type Method Description protected boolean
addExtension(File extension)
protected void
addExtensions()
void
addTo(GameModule mod)
protected ModuleExtension
createExtension(String extname)
Command
decode(String command)
Translate a String into aCommand
String
encode(Command c)
Translate aCommand
into a Stringprotected String
getErrorMessage(String name, String msg)
protected String
getLoadedMessage(String name, String version)
-
Field Details
-
COMMAND_PREFIX
- See Also:
- Constant Field Values
-
SPECIFY_DIR_IN_PREFS
- See Also:
- Constant Field Values
-
EXTENSION_DIR
- See Also:
- Constant Field Values
-
loadedExtensions
-
loadedIds
-
extMgr
-
globalExtMgr
-
-
Constructor Details
-
ExtensionsLoader
public ExtensionsLoader()
-
-
Method Details
-
addTo
-
addExtensions
protected void addExtensions() -
addExtension
-
createExtension
- Throws:
ZipException
IOException
-
getLoadedMessage
-
getErrorMessage
-
decode
Description copied from interface:CommandEncoder
Translate a String into aCommand
- Specified by:
decode
in interfaceCommandEncoder
-
encode
Description copied from interface:CommandEncoder
Translate aCommand
into a String- Specified by:
encode
in interfaceCommandEncoder
-