Package nz.org.riskscape.engine.plugin
Class BuiltInPluginDescriptor
java.lang.Object
nz.org.riskscape.engine.plugin.BuiltInPluginDescriptor
- All Implemented Interfaces:
nz.org.riskscape.engine.plugin.PluginDescriptor
public class BuiltInPluginDescriptor
extends Object
implements nz.org.riskscape.engine.plugin.PluginDescriptor
A plugin descriptor for code that wasn't dynamically loaded (and can also be used in some testing scenarios)
-
Constructor Summary
ConstructorDescriptionBuiltInPluginDescriptor
(String pluginId, nz.org.riskscape.engine.BuildInfo buildInfo, Class<? extends nz.org.riskscape.engine.plugin.Plugin> pluginClass, Path sourcePath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(nz.org.riskscape.engine.plugin.PluginDescriptor dependencyDescriptor) protected boolean
boolean
int
hashCode()
boolean
nz.org.riskscape.engine.plugin.Plugin
static BuiltInPluginDescriptor
testPlugin
(Class<? extends nz.org.riskscape.engine.plugin.Plugin> pluginClass) Build a plugin descriptor for use in teststoString()
-
Constructor Details
-
BuiltInPluginDescriptor
-
-
Method Details
-
testPlugin
public static BuiltInPluginDescriptor testPlugin(Class<? extends nz.org.riskscape.engine.plugin.Plugin> pluginClass) Build a plugin descriptor for use in tests
-
getI18nClassLoader
- Specified by:
getI18nClassLoader
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
newPluginInstance
public nz.org.riskscape.engine.plugin.Plugin newPluginInstance()- Specified by:
newPluginInstance
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
hasPluginDependencies
public boolean hasPluginDependencies()- Specified by:
hasPluginDependencies
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
getPluginDependencies
- Specified by:
getPluginDependencies
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
addDependency
public void addDependency(nz.org.riskscape.engine.plugin.PluginDescriptor dependencyDescriptor) - Specified by:
addDependency
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
getPluginClassName
- Specified by:
getPluginClassName
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
getVersion
- Specified by:
getVersion
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getPluginId
- Specified by:
getPluginId
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-
getSourcePath
- Specified by:
getSourcePath
in interfacenz.org.riskscape.engine.plugin.PluginDescriptor
-