Package com.tngtech.jgiven.format.table
Class FieldBasedRowFormatter.Factory
java.lang.Object
com.tngtech.jgiven.format.table.FieldBasedRowFormatter.Factory
- All Implemented Interfaces:
RowFormatterFactory
- Enclosing class:
- FieldBasedRowFormatter
Factory for creating instances of
FieldBasedRowFormatter
- Since:
- 0.9.6
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Class<?> parameterType, String parameterName, Table tableAnnotation, Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter<?> objectFormatter) Creates a newRowFormatter
instance.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
create
public RowFormatter create(Class<?> parameterType, String parameterName, Table tableAnnotation, Annotation[] annotations, FormatterConfiguration configuration, ObjectFormatter<?> objectFormatter) Description copied from interface:RowFormatterFactory
Creates a newRowFormatter
instance.- Specified by:
create
in interfaceRowFormatterFactory
- Parameters:
parameterType
- the type of the table parameterparameterName
- the name of the table parametertableAnnotation
- theTable
annotation of the parameterannotations
- all annotations of the table parameter including theTable
annotationconfiguration
- the formatter configurationobjectFormatter
- the standard object formatter that would be used by JGiven- Returns:
- an instance of
RowFormatter
-