Interface GroovyExtension<T>
- All Known Subinterfaces:
CurveGroovyExtension
,DynamicModelGroovyExtension
,EventModelGroovyExtension
public interface GroovyExtension<T>
- Author:
- Mathieu Bague <[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends GroovyExtension>
List<T>Return the list of available GroovyExtension of type clazz, compatible with the provider which the name is givendefault String
getName()
Return the name of theDynamicSimulationProvider
instance, this provider is compatible with.void
load
(groovy.lang.Binding binding, Consumer<T> consumer, ReportNode reportNode) Load the extension into the binding object.
-
Method Details
-
getName
Return the name of theDynamicSimulationProvider
instance, this provider is compatible with. This method can return null, if this extension is compatible with anyDynamicSimulationProvider
objects.- Returns:
- The name of a compatible
DynamicSimulationProvider
, or null for any
-
load
Load the extension into the binding object. Each time an object is created, the consumer is notified.- Parameters:
binding
- The binding where to register the extensionconsumer
- The consumer to notify on objects creationreportNode
- the reportNode used for functional logs
-
find
Return the list of available GroovyExtension of type clazz, compatible with the provider which the name is given- Parameters:
clazz
- The type of extension to look for in the classpathproviderName
- The name of the provider- Returns:
- A list of extensions compatible with a given provider
-