| Class | Line # | Actions | |||||
|---|---|---|---|---|---|---|---|
| GenDataObjectFactory | 12 | 0 | - | 0 | 0 |
| 1 | package guru.mikelue.foxglove.annotation; | |
| 2 | ||
| 3 | import java.util.List; | |
| 4 | ||
| 5 | import guru.mikelue.foxglove.DataGenerator; | |
| 6 | import guru.mikelue.foxglove.TableFacet; | |
| 7 | ||
| 8 | /** | |
| 9 | * A factory interface to create data generator and table facets defined | |
| 10 | * by {@link GenData}. | |
| 11 | */ | |
| 12 | public interface GenDataObjectFactory { | |
| 13 | /** | |
| 14 | * Creates a data generator defined by {@link GenData}. | |
| 15 | * | |
| 16 | * @return The instance of data generator | |
| 17 | * | |
| 18 | * @throws Exception If fails to create the data generator | |
| 19 | */ | |
| 20 | DataGenerator<TableFacet> getDataGenerator() throws Exception; | |
| 21 | ||
| 22 | /** | |
| 23 | * Creates table facets defined by {@link GenData}. | |
| 24 | * | |
| 25 | * @return The list of table facets | |
| 26 | * | |
| 27 | * @throws Exception If fails to create the table facets | |
| 28 | */ | |
| 29 | List<TableFacet> getTableFacets() throws Exception; | |
| 30 | } |