public interface SchematicDbProvider<T extends SchematicDb>
SchematicDb
providers. A particular provider is expected to implement this interface
and make itself available for discovery using the standard ServiceLoader
mechanism.Modifier and Type | Method and Description |
---|---|
T |
getDB(String type,
Document configuration)
Returns a schematic DB instance for a given db type and configuration document
|
T getDB(String type, Document configuration)
type
- the type of DB; may not be null
configuration
- a Document
instance which contains the configuration of a particular DB.SchematicDb
instance or null
if a particular provider does not recognize the type.RuntimeException
- if a DB provider recognizes the type, but fails in an expected way to provide a valid DB
instance.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.