public interface GroovyExtension<T>
Modifier and Type | Method and Description |
---|---|
static <T extends GroovyExtension> |
find(Class<T> clazz,
String providerName)
Return the list of available GroovyExtension of type clazz, compatible with the provider which the name is given
|
default String |
getName()
Return the name of the
DynamicSimulationProvider instance, this provider is compatible with. |
void |
load(groovy.lang.Binding binding,
Consumer<T> consumer)
Load the extension into the binding object.
|
default String getName()
DynamicSimulationProvider
instance, this provider is compatible with.
This method can return null, if this extension is compatible with any DynamicSimulationProvider
objects.DynamicSimulationProvider
, or null for anyvoid load(groovy.lang.Binding binding, Consumer<T> consumer)
binding
- The binding where to register the extensionconsumer
- The consumer to notify on objects creationstatic <T extends GroovyExtension> List<T> find(Class<T> clazz, String providerName)
clazz
- The type of extension to look for in the classpathproviderName
- The name of the providerCopyright © 2020. All rights reserved.