se.fortnox.reactivewizard.binding.scanners.HttpConfigClassScanner Maven / Gradle / Ivy
package se.fortnox.reactivewizard.binding.scanners;
import jakarta.inject.Singleton;
import se.fortnox.reactivewizard.client.HttpClientConfig;
import se.fortnox.reactivewizard.config.Config;
@Singleton
/*
* Finds all classes having a Config annotation and is a subclass of HttpClientConfig
*/
public class HttpConfigClassScanner extends AbstractClassScanner {
@Override
public void visit(ClassScanner classScanner) {
classScanner.findClassesAnnotatedWith(Config.class).forEach(cls -> {
if (HttpClientConfig.class.isAssignableFrom(cls)) {
this.add(cls);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy