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.HandleNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtensionPoint(Class<? extends PluginFeature> featureClass) Convenience method for adding an extension point by its feature classbooleanaddFeature(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, removeAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-