Package ca.phon.formatter
Class FormatterFactory
java.lang.Object
ca.phon.formatter.FormatterFactory
Provides classpath access to formatters based on entries
found in the META-INF/services/ca.phon.formatter.Formatter
files.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Formatter<T>
createFormatter
(Class<T> type) Create a new formatter for the given type.
-
Constructor Details
-
FormatterFactory
public FormatterFactory()
-
-
Method Details
-
createFormatter
Create a new formatter for the given type.- Parameters:
type
-- Returns:
- formatter for the given type of
null
if a formatter was not found
-