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

lphy.base.spi.ValueFormatterBaseImpl Maven / Gradle / Ivy

Go to download

The standard library of LPhy, which contains the required generative distributions and basic functions.

The newest version!
package lphy.base.spi;

import lphy.base.logger.NexusAlignmentFormatter;
import lphy.base.logger.NexusTreeFormatter;
import lphy.core.logger.ValueFormatter;
import lphy.core.spi.ValueFormatterCoreImpl;

import java.util.Set;

/**
 * The "Container" provider class that implements SPI
 * which include a list of {@link ValueFormatter} required in the core.
 * It requires a public no-args constructor.
 * @author Walter Xie
 */
@Deprecated
public class ValueFormatterBaseImpl extends ValueFormatterCoreImpl {//implements ValueFormatterExtension {

    //TODO NexusAlignmentFormatter.class, NexusTreeFormatter.class will be used inside lphy only.
    // extension mechanism is implemented in TextFileFormatted now.
    @Override
    public Set> declareValueFormatters() {
        return Set.of(NexusAlignmentFormatter.class, NexusTreeFormatter.class);
    }

    /**
     * Required by ServiceLoader.
     */
    public ValueFormatterBaseImpl() {
    }

    public String getExtensionName() {
        return "LPhy base loggers";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy