Remove withBackendType(String), to encourage usage instead of with/set method that takes the module class, so the module will be init'ed and registered

This commit is contained in:
2024-04-10 09:05:43 -05:00
parent 1eae1d6dc4
commit 731d1e266a
9 changed files with 19 additions and 34 deletions

View File

@ -155,18 +155,6 @@ public class QBackendMetaData implements TopLevelMetaDataInterface
/*******************************************************************************
** Fluent setter, returning generically, to help sub-class fluent flows
*******************************************************************************/
@SuppressWarnings("unchecked")
public <T extends QBackendMetaData> T withBackendType(String backendType)
{
this.backendType = backendType;
return (T) this;
}
/*******************************************************************************
**
*******************************************************************************/

View File

@ -89,7 +89,7 @@ class EnumerationCountActionTest extends BaseTest
QInstance instance = QContext.getQInstance();
instance.addBackend(new QBackendMetaData()
.withName("enum")
.withBackendType("enum")
.withBackendType(EnumerationBackendModule.class)
);
instance.addTable(new QTableMetaData()

View File

@ -167,7 +167,7 @@ class EnumerationQueryActionTest extends BaseTest
QInstance instance = QContext.getQInstance();
instance.addBackend(new QBackendMetaData()
.withName("enum")
.withBackendType("enum")
.withBackendType(EnumerationBackendModule.class)
);
instance.addTable(new QTableMetaData()