org.apache.activemq.store.jdbc
Class DataSourceSupport
java.lang.Object
org.apache.activemq.store.jdbc.DataSourceSupport
- Direct Known Subclasses:
- JDBCPersistenceAdapter, JournalPersistenceAdapterFactory
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: 564057 $
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.