Skip to content

Commit

Permalink
feat: change IntegrationProviderFactory signature to rely on Spring env
Browse files Browse the repository at this point in the history
Instead of providing a serialized configuration, we provide the Spring
environment with a prefix that will be used to fetch configuration
attributes.
  • Loading branch information
jgiovaresco committed Mar 25, 2024
1 parent 28474de commit 2f6f9a3
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -16,10 +16,19 @@

package io.gravitee.integration.api.plugin;

import org.springframework.core.env.Environment;

/**
* @author Remi Baptiste (remi.baptiste at graviteesource.com)
* @author GraviteeSource Team
*/
public interface IntegrationProviderFactory<I extends IntegrationProvider> {
I createIntegrationProvider(String id, String configuration);
/**
* Create an integration provider using Spring Environment and a Prefix to load the configuration
* @param id The id of the integration provider.
* @param environment The Spring Environment where to load the configuration.
* @param prefix The prefix to use to load the configuration.
* @return The created integration provider.
*/
I createIntegrationProvider(String id, Environment environment, String prefix);
}

0 comments on commit 2f6f9a3

Please sign in to comment.