Package nz.org.riskscape.engine.plugin
Class ExtensionPoints
java.lang.Object
nz.org.riskscape.engine.IdentifiedCollection.Base<ExtensionPoint<?>>
nz.org.riskscape.engine.plugin.ExtensionPoints
- All Implemented Interfaces:
IdentifiedCollection<ExtensionPoint<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
IdentifiedCollection.Base.Handle
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.IdentifiedCollection
IdentifiedCollection.Base<T extends Identified>
-
Field Summary
Fields inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
results
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtensionPoint
(Class<? extends PluginFeature> featureClass) Convenience method for adding an extension point by its feature classboolean
addFeature
(PluginFeature feature) Add a feature to this set of extension points, returning false if none of the extension points supported this feature.<T extends PluginFeature>
List<T>getFeaturesOfType
(Class<T> featureClass) Methods inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
add, add, add, addAll, addAll, clear, containsKey, determineCollectionClass, get, getAll, getAllProblems, getCollectionClass, getOr, getReferences, getResult, getSimilarIds, isEmpty, remove, removeAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.IdentifiedCollection
get
-
Constructor Details
-
ExtensionPoints
public ExtensionPoints()
-
-
Method Details
-
getFeaturesOfType
- Returns:
- a list of all the features registered to extension points with the given feature class
-
addExtensionPoint
Convenience method for adding an extension point by its feature class
-
addFeature
Add a feature to this set of extension points, returning false if none of the extension points supported this feature. Note that a feature can potentially implement multiple Feature SPIs, so can be added to more than one ExtensionPoint
-