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

fi.jubic.easyconfig.internal.parameter.MappableObject Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package fi.jubic.easyconfig.internal.parameter;

import fi.jubic.easyconfig.internal.Result;
import fi.jubic.easyconfig.internal.initializers.Initializer;
import fi.jubic.easyconfig.providers.EnvProvider;

public class MappableObject implements Mappable {
    private final String prefix;
    private final Initializer initializer;

    public MappableObject(
            String prefix,
            Initializer initializer
    ) {
        this.prefix = prefix;
        this.initializer = initializer;
    }

    @Override
    public Result initialize(String prefix, EnvProvider envProvider) {
        return initializer.initialize(prefix + this.prefix, envProvider);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy