Class ConstructorFeature<A,T>

java.lang.Object
nz.org.riskscape.engine.plugin.ConstructorFeature<A,T>
All Implemented Interfaces:
PluginFeature
Direct Known Subclasses:
CliCommand, EngineCollection

public abstract class ConstructorFeature<A,T> extends Object implements PluginFeature

Useful base class for features that just return a new instance of something of a particular type

Note that I've implemented this so that it can accept an arg, even though we don't need that yet, because it impacts the type signature and will be a PITA to add later

  • Constructor Details

    • ConstructorFeature

      public ConstructorFeature(Class<T> implementationClass)
  • Method Details

    • newInstance

      public T newInstance(A arg)
    • newInstance

      public T newInstance()
    • toString

      public String toString()
      Overrides:
      toString in class Object