public class DefaultRepositoryFactory extends AbstractObjectFactory<com.amazon.carbonado.Repository> implements RepositoryFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultRepositoryFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
com.amazon.carbonado.Repository |
create(String name) |
void |
destroy(String name,
com.amazon.carbonado.Repository instance) |
Map<String,Object> |
getConfigurationFor(String repositoryName) |
protected String |
getPluralKey() |
Set<String> |
getRepositoryNames() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultRepositoryFactory(@Nonnull @Named(value="carbonado") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getRepositoryNames()
getRepositoryNames
in interface RepositoryFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String repositoryName)
getConfigurationFor
in interface RepositoryFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<com.amazon.carbonado.Repository>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<com.amazon.carbonado.Repository>
@Nonnull public com.amazon.carbonado.Repository create(@Nonnull String name)
create
in interface ObjectFactory<com.amazon.carbonado.Repository>
public void destroy(@Nonnull String name, @Nonnull com.amazon.carbonado.Repository instance)
destroy
in interface ObjectFactory<com.amazon.carbonado.Repository>