Interface GroovyExtension<T>

    • Method Detail

      • 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 extension
        consumer - The consumer to notify on objects creation
      • find

        static <T extends GroovyExtensionList<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 classpath
        providerName - The name of the provider
        Returns:
        A list of extensions compatible with a given provider