Class FormatterFactory

java.lang.Object
ca.phon.formatter.FormatterFactory

public class FormatterFactory extends Object
Provides classpath access to formatters based on entries found in the META-INF/services/ca.phon.formatter.Formatter files.
  • Constructor Details

    • FormatterFactory

      public FormatterFactory()
  • Method Details

    • createFormatter

      public static <T> Formatter<T> createFormatter(Class<T> type)
      Create a new formatter for the given type.
      Parameters:
      type -
      Returns:
      formatter for the given type of null if a formatter was not found