public class ModuleFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deregisterModule(Module mod) |
static Module |
getInstance(File file)
Uses the File-Extension to find a suitable loader.
|
static Module |
getInstance(String fileName)
Uses the File-Extension to find a suitable loader.
|
static Module |
getInstance(URL url)
Uses the File-Extension to find a suitable loader.
|
static Module |
getModuleFromExtension(String extension) |
static String[] |
getSupportedFileExtensions() |
static void |
registerModule(Module mod) |
public static void registerModule(Module mod)
public static void deregisterModule(Module mod)
public static String[] getSupportedFileExtensions()
public static Module getInstance(String fileName) throws IOException
fileName - The Filename of the modIOExceptionpublic static Module getInstance(File file) throws IOException
file - The File-Instance of the modfileIOExceptionpublic static Module getInstance(URL url) throws IOException
url - URL-Instance of the path to the modfileIOExceptionCopyright © 2014. All rights reserved.