Class DataCatalogueFactory
- java.lang.Object
-
- dev.pcvolkmer.mv64e.datamapper.datacatalogues.DataCatalogueFactory
-
@NullMarked public class DataCatalogueFactory extends java.lang.ObjectSimple catalogue factory to get a catalogue instance- Since:
- 0.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends DataCatalogue>
Tcatalogue(java.lang.Class<T> clazz)Get Catalogue of the required typebooleanhasCatalogue(java.lang.Class<? extends DataCatalogue> clazz)Checks if a catalogue of this type is supported by the factory.static DataCatalogueFactoryinitialize(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)static DataCatalogueFactoryinstance()
-
-
-
Method Detail
-
initialize
public static DataCatalogueFactory initialize(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
instance
public static DataCatalogueFactory instance()
-
catalogue
public <T extends DataCatalogue> T catalogue(java.lang.Class<T> clazz)
Get Catalogue of the required type- Type Parameters:
T- The catalogue type- Parameters:
clazz- The catalogue class- Returns:
- The catalogue if it exists
-
hasCatalogue
public boolean hasCatalogue(java.lang.Class<? extends DataCatalogue> clazz)
Checks if a catalogue of this type is supported by the factory.- Parameters:
clazz- The catalogue class- Returns:
- true if the factory knows how to create this catalogue type
-
-