lphy.base.spi.ValueFormatterBaseImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lphy-base Show documentation
Show all versions of lphy-base Show documentation
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";
}
}