public class DefaultConnectionSourceFactory extends AbstractObjectFactory<com.j256.ormlite.support.ConnectionSource> implements ConnectionSourceFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultConnectionSourceFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
com.j256.ormlite.support.ConnectionSource |
create(String name) |
void |
destroy(String name,
com.j256.ormlite.support.ConnectionSource instance) |
Map<String,Object> |
getConfigurationFor(String databaseName) |
Set<String> |
getConnectionSourceNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultConnectionSourceFactory(@Nonnull @Named(value="ormlite") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getConnectionSourceNames()
getConnectionSourceNames
in interface ConnectionSourceFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String databaseName)
getConfigurationFor
in interface ConnectionSourceFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<com.j256.ormlite.support.ConnectionSource>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<com.j256.ormlite.support.ConnectionSource>
@Nonnull public com.j256.ormlite.support.ConnectionSource create(@Nonnull String name)
create
in interface ObjectFactory<com.j256.ormlite.support.ConnectionSource>
public void destroy(@Nonnull String name, @Nonnull com.j256.ormlite.support.ConnectionSource instance)
destroy
in interface ObjectFactory<com.j256.ormlite.support.ConnectionSource>