public class DefaultGsqlFactory extends AbstractObjectFactory<groovy.sql.Sql> implements GsqlFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultGsqlFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
groovy.sql.Sql |
create(String name) |
void |
destroy(String name,
groovy.sql.Sql instance) |
Map<String,Object> |
getConfigurationFor(String datasourceName) |
Set<String> |
getDatasourceNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultGsqlFactory(@Nonnull @Named(value="datasource") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getDatasourceNames()
getDatasourceNames
in interface GsqlFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String datasourceName)
getConfigurationFor
in interface GsqlFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<groovy.sql.Sql>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<groovy.sql.Sql>
@Nonnull public groovy.sql.Sql create(@Nonnull String name)
create
in interface ObjectFactory<groovy.sql.Sql>
public void destroy(@Nonnull String name, @Nonnull groovy.sql.Sql instance)
destroy
in interface ObjectFactory<groovy.sql.Sql>