Package net.sf.gridarta.plugin
Class PluginModelLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.plugin.PluginModelLoader<G,A,R>
-
public class PluginModelLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectUtility class for loading plugins.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
@NotNull PluginModel<G,A,R>loadPlugins(@NotNull PluginParameterFactory<G,A,R> pluginParameterFactory, @NotNull PluginModelParser<G,A,R> pluginModelParser, @NotNull ErrorView errorView, @NotNull java.io.File pluginsDir)Load all files as plugins from the given directory.static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Plugin<G,A,R>loadXML(@NotNull PluginModelParser<G,A,R> pluginModelParser, @NotNull java.io.File file)
-
-
-
Method Detail
-
loadPlugins
@NotNull public static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> @NotNull PluginModel<G,A,R> loadPlugins(@NotNull @NotNull PluginParameterFactory<G,A,R> pluginParameterFactory, @NotNull @NotNull PluginModelParser<G,A,R> pluginModelParser, @NotNull @NotNull ErrorView errorView, @NotNull @NotNull java.io.File pluginsDir)
Load all files as plugins from the given directory.- Parameters:
pluginModelParser- the plugin model parser to useerrorView- the error view for reporting errorspluginsDir- the directory to load- Returns:
- the loaded plugin model
-
loadXML
public static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> Plugin<G,A,R> loadXML(@NotNull @NotNull PluginModelParser<G,A,R> pluginModelParser, @NotNull @NotNull java.io.File file) throws java.io.IOException, nu.xom.ParsingException, org.xml.sax.SAXException
- Throws:
java.io.IOExceptionnu.xom.ParsingExceptionorg.xml.sax.SAXException
-
-