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

io.dropwizard.configuration.ConfigurationFactoryFactory Maven / Gradle / Ivy

The newest version!
package io.dropwizard.configuration;

import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.validation.Validator;

/**
 * A generic interface for constructing a configuration factory that can create configuration objects.
 *
 * @param  the type of the configuration objects to produce
 */
public interface ConfigurationFactoryFactory {
    /**
     * Creates a new configuration factory for the given class.
     *
     * @param klass          the configuration class
     * @param validator      the validator to use
     * @param objectMapper   the Jackson {@link ObjectMapper} to use
     * @param propertyPrefix the system property name prefix used by overrides
     * @return the new configuration factory
     */
    ConfigurationFactory create(Class klass,
            Validator validator,
            ObjectMapper objectMapper,
            String propertyPrefix);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy