All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.fortnox.reactivewizard.binding.scanners.HttpConfigClassScanner Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
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