Class DataSourceFactory
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.DataSourceFactory
-
public class DataSourceFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description DataSourceFactory(JdbcRepositoryConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcRepositoryConfiguration
configuration()
DataSource
createDataSource(String applicationName)
void
destroy()
DataSource
getDataSource()
-
-
-
Constructor Detail
-
DataSourceFactory
public DataSourceFactory(JdbcRepositoryConfiguration configuration)
-
-
Method Detail
-
configuration
public JdbcRepositoryConfiguration configuration()
-
createDataSource
public DataSource createDataSource(String applicationName) throws RepositoryServiceFactoryException
-
getDataSource
public DataSource getDataSource()
-
destroy
@PreDestroy public void destroy() throws IOException
- Throws:
IOException
-
-