![JAR search and dependency download from the Maven repository](/logo.png)
org.seedstack.netflix.feign.internal.FeignModule Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2013-2016, The SeedStack authors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.netflix.feign.internal;
import com.google.inject.AbstractModule;
import java.util.Collection;
class FeignModule extends AbstractModule {
private final Collection> feignApis;
FeignModule(Collection> feignApis) {
this.feignApis = feignApis;
}
@Override
@SuppressWarnings("unchecked")
protected void configure() {
for (Class> feignApi : feignApis) {
bind(feignApi).toProvider((javax.inject.Provider) new FeignProvider(feignApi));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy