package org.adrianvictor.lib.impl.b1_7_3;

import org.adrianvictor.lib.versioning.VersionedServiceFactory;
import org.adrianvictor.lib.versioning.VersionedServiceRegistrar;
import org.adrianvictor.lib.configuration.provider.ConfigurationProvider;
import org.adrianvictor.lib.impl.b1_7_3.configuration.Configuration;
import org.adrianvictor.lib.text.provider.TextColorProvider;
import org.adrianvictor.lib.impl.b1_7_3.text.TextColor;

public class B1_7_3Registrar implements VersionedServiceRegistrar {
    @Override
    public void register(VersionedServiceFactory factory) {
        factory.register(ConfigurationProvider.class, "b1_7_3", Configuration::new);
        factory.register(TextColorProvider.class, "b1_7_3", TextColor::new);

        // Register for b1_8_compat as well, assuming compatibility
        factory.register(ConfigurationProvider.class, "b1_8_compat", Configuration::new);
        factory.register(TextColorProvider.class, "b1_8_compat", TextColor::new);
    }
}
