Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change IntegrationProviderFactory signature to rely on Spring env #4

Merged
merged 2 commits into from Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
}

This file was deleted.