Class MetaDataProducerHelper
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.MetaDataProducerHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<MetaDataProducerInterface<?>> findProducers
(String packageName) Getter for tableMetaDataCustomizerstatic void
processAllMetaDataProducersInPackage
(QInstance instance, String packageName) Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance.static void
processAllMetaDataProducersInPackage
(QInstance instance, String packageName, MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance - using the provided tableMetaDataCustomizer to help with all RecordEntity's that are configured to make tables.void
setTableMetaDataCustomizer
(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) Setter for tableMetaDataCustomizervoid
withTableMetaDataCustomizer
(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) Fluent setter for tableMetaDataCustomizer
-
Constructor Details
-
MetaDataProducerHelper
public MetaDataProducerHelper()
-
-
Method Details
-
processAllMetaDataProducersInPackage
public static void processAllMetaDataProducersInPackage(QInstance instance, String packageName, MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) throws QException Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance - using the provided tableMetaDataCustomizer to help with all RecordEntity's that are configured to make tables. Note - they'll be sorted by the sortOrder they provide.- Throws:
QException
-
findProducers
public static List<MetaDataProducerInterface<?>> findProducers(String packageName) throws QException - Throws:
QException
-
processAllMetaDataProducersInPackage
public static void processAllMetaDataProducersInPackage(QInstance instance, String packageName) throws QException Recursively find all classes in the given package, that implement MetaDataProducerInterface run them, and add their output to the given qInstance. Note - they'll be sorted by the sortOrder they provide.- Throws:
QException
-
getTableMetaDataCustomizer
Getter for tableMetaDataCustomizer -
setTableMetaDataCustomizer
public void setTableMetaDataCustomizer(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) Setter for tableMetaDataCustomizer -
withTableMetaDataCustomizer
public void withTableMetaDataCustomizer(MetaDataCustomizerInterface<QTableMetaData> tableMetaDataCustomizer) Fluent setter for tableMetaDataCustomizer
-