org.apache.activemq.store.jdbc
Class DataSourceSupport
java.lang.Object
org.apache.activemq.store.jdbc.DataSourceSupport
- Direct Known Subclasses:
- DefaultPersistenceAdapterFactory, JDBCPersistenceAdapter
public class DataSourceSupport
- extends Object
A helper class which provides a factory method to create a default
{@link DataSource) if one is not provided.
- Version:
- $Revision: 426366 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceSupport
public DataSourceSupport()
DataSourceSupport
public DataSourceSupport(DataSource dataSource)
getDataDirectoryFile
public File getDataDirectoryFile()
setDataDirectoryFile
public void setDataDirectoryFile(File dataDirectory)
getDataDirectory
public String getDataDirectory()
setDataDirectory
public void setDataDirectory(String dataDirectory)
getDataSource
public DataSource getDataSource()
throws IOException
- Throws:
IOException
setDataSource
public void setDataSource(DataSource dataSource)
createDataSource
protected DataSource createDataSource()
throws IOException
- Throws:
IOException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.