Package org.int4.dirk.plugins
Class Plugin
- java.lang.Object
-
- org.int4.dirk.plugins.Plugin
-
public class Plugin extends java.lang.ObjectA list of types with a name andClassLoadertogether representing a plugin that can be loaded or unloaded as a whole.
-
-
Constructor Summary
Constructors Constructor Description Plugin(java.lang.String name, java.util.List<java.lang.reflect.Type> types, java.lang.ClassLoader classLoader)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoadergetClassLoader()Returns theClassLoaderif the plugin was not unloaded.java.util.List<java.lang.reflect.Type>getTypes()Returns a list ofTypes if the plugin was not unloaded.booleanisUnloaded()Returnstrueif this plugin is unloaded, otherwisefalse.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Plugin
public Plugin(java.lang.String name, java.util.List<java.lang.reflect.Type> types, java.lang.ClassLoader classLoader)Constructs a new instance.- Parameters:
name- a name for the plugintypes- a list ofTypes part of the plugin, cannot benullor containsnullsclassLoader- aClassLoader, cannot benull
-
-
Method Detail
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Returns theClassLoaderif the plugin was not unloaded.- Returns:
- the
ClassLoaderornullif unloaded
-
getTypes
public java.util.List<java.lang.reflect.Type> getTypes()
Returns a list ofTypes if the plugin was not unloaded.- Returns:
- a list of
Types, immutable and never contains null, or, returnsnullif unloaded
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isUnloaded
public boolean isUnloaded()
Returnstrueif this plugin is unloaded, otherwisefalse.- Returns:
trueif this plugin is unloaded, otherwisefalse
-
-