Interface GroovyExtension<T>
-
- All Known Subinterfaces:
CurveGroovyExtension
,DynamicModelGroovyExtension
,EventModelGroovyExtension
public interface GroovyExtension<T>
- Author:
- Mathieu Bague
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <T extends GroovyExtension>
List<T>find(Class<T> clazz, String providerName)
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)
Load the extension into the binding object.
-
-
-
Method Detail
-
getName
default String 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
void load(groovy.lang.Binding binding, Consumer<T> consumer)
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 creation
-
find
static <T extends GroovyExtension> List<T> find(Class<T> clazz, String providerName)
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
-
-