public class TableCatalog extends Object implements FactoryCatalog<Table>, TableCatalogService
| Constructor and Description |
|---|
TableCatalog()
Creates a new empty instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(TableProvider factory)
Adds a factory (intended for use by the OSGi framework)
|
Table |
get(String identifier)
Gets the Factory with this identifier
|
Collection<FactoryProperties> |
list()
Lists the tables
|
Collection<FactoryProperties> |
list(TableFilter filter)
Lists the tables that matches the specified filter
|
static TableCatalog |
newInstance()
Creates a new TableCatalog and populates it using the SPI
(java service provider interface).
|
Table |
newTable(String identifier)
Creates a new table with the specified identifier.
|
void |
removeFactory(TableProvider factory)
Removes a factory (intended for use by the OSGi framework)
|
public TableCatalog()
public static TableCatalog newInstance()
Creates a new TableCatalog and populates it using the SPI (java service provider interface).
In an OSGi context, an instance should be retrieved using the service registry. It will be registered under the TableCatalogService interface.
public void addFactory(TableProvider factory)
factory - the factory to addpublic void removeFactory(TableProvider factory)
factory - the factory to removepublic Table get(String identifier)
FactoryCatalogget in interface FactoryCatalog<Table>identifier - the identifier for the requested Factorypublic Table newTable(String identifier)
TableCatalogServicenewTable in interface TableCatalogServiceidentifier - the identifierpublic Collection<FactoryProperties> list()
TableCatalogServicelist in interface TableCatalogServicepublic Collection<FactoryProperties> list(TableFilter filter)
TableCatalogServicelist in interface TableCatalogServicefilter - the filter