Package nz.org.riskscape.engine.spi
Class EngineCollection
java.lang.Object
nz.org.riskscape.engine.plugin.ConstructorFeature<Engine,IdentifiedCollection<Identified>>
nz.org.riskscape.engine.spi.EngineCollection
- All Implemented Interfaces:
PluginFeature
An engine collection allows new IdentifiedCollections to be plugged in, accessible via
IdentifiedLocator.getCollection(Class)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IdentifiedCollection<?>>
EngineCollectionGenerics-defeating constructor for a new EngineCollection.Methods inherited from class nz.org.riskscape.engine.plugin.ConstructorFeature
newInstance, newInstance, toString
-
Constructor Details
-
EngineCollection
-
-
Method Details
-
of
Generics-defeating constructor for a new EngineCollection. Without this, the compiler complains that a specific IdentifiedCollection is not OK, even though in practice it's fine and won't produce class cast exceptions. The fix for this is to make EngineCollection accept a type variable, but that confuses the ConstructorFeature interface (newInstance always seems to return Object), so we kludge it like this instead
-