public class PluginModelLoader<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<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>> |
loadXML(@NotNull PluginModelParser<G,A,R> pluginModelParser,
@NotNull java.io.File file) |
@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)
pluginModelParser
- the plugin model parser to useerrorView
- the error view for reporting errorspluginsDir
- the directory to loadpublic 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
java.io.IOException
nu.xom.ParsingException
org.xml.sax.SAXException