SC
- service connector typeSI
- service info typepublic interface ServiceConnectorCreator<SC,SI extends ServiceInfo>
Modifier and Type | Method and Description |
---|---|
SC |
create(SI serviceInfo,
ServiceConnectorConfig serviceConnectorConfig)
Create service for the given service info and configured with the given
configuration
|
java.lang.Class<SC> |
getServiceConnectorType()
Get the type of connector created (such as
DataSource ) |
java.lang.Class<?> |
getServiceInfoType()
Get the service info type this creator can work with (such as
MysqlServiceInfo ) |
SC create(SI serviceInfo, ServiceConnectorConfig serviceConnectorConfig)
serviceInfo
- the ServiceInfo
object containing the information necessary to connect to the serviceserviceConnectorConfig
- configuration information to be applied to the connectionjava.lang.Class<SC> getServiceConnectorType()
DataSource
)java.lang.Class<?> getServiceInfoType()
MysqlServiceInfo
)