Package org.scijava
Interface Instantiable<T>
-
- Type Parameters:
T- The type of objects that can be created.
- All Known Implementing Classes:
CommandInfo,PluginInfo
public interface Instantiable<T>An interface declaring the ability to create objects.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcreateInstance()Creates an object.StringgetClassName()Gets the fully qualified name of theClassof the objects that can be created.Class<? extends T>loadClass()Loads the class corresponding to the objects that are created bycreateInstance().
-
-
-
Method Detail
-
getClassName
String getClassName()
Gets the fully qualified name of theClassof the objects that can be created.
-
loadClass
Class<? extends T> loadClass() throws InstantiableException
Loads the class corresponding to the objects that are created bycreateInstance().Note that this class may not be precisely
T.classbut instead a subclass thereof.
-
createInstance
T createInstance() throws InstantiableException
Creates an object.- Throws:
InstantiableException
-
-