io.github.mmm.orm.connection.DbConnectionPoolProviderManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-orm-spi Show documentation
Show all versions of mmm-orm-spi Show documentation
Service Provider API (SPI) for mmm-orm.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.orm.connection;
import io.github.mmm.orm.connection.impl.DbConnectionPoolProviderManagerImpl;
/**
* Internal interface to get access to the registered {@link DbConnectionPoolProvider}s.
*/
public interface DbConnectionPoolProviderManager extends Iterable> {
/**
* @param type of the {@link DbConnection}.
* @param id the {@link DbConnectionPoolProvider#getId() identifier} of the {@link DbConnectionPoolProvider}.
* @return the requested {@link DbConnectionPoolProvider}.
* @see io.github.mmm.orm.source.DbSource#KEY_POOL
*/
DbConnectionPoolProvider get(String id);
/**
* @return the instance of {@link DbConnectionPoolProviderManagerImpl}.
*/
static DbConnectionPoolProviderManager get() {
return DbConnectionPoolProviderManagerImpl.INSTANCE;
}
}