org.apache.activemq.store.jdbc
Class DataSourceSupport

java.lang.Object
  extended by org.apache.activemq.store.jdbc.DataSourceSupport
Direct Known Subclasses:
JDBCPersistenceAdapter, JournalPersistenceAdapterFactory

public class DataSourceSupport
extends java.lang.Object

A helper class which provides a factory method to create a default {@link DataSource) if one is not provided.


Constructor Summary
DataSourceSupport()
           
DataSourceSupport(javax.sql.DataSource dataSource)
           
 
Method Summary
protected  javax.sql.DataSource createDataSource()
           
 java.lang.String getDataDirectory()
           
 java.io.File getDataDirectoryFile()
           
 javax.sql.DataSource getDataSource()
           
 void setDataDirectory(java.lang.String dataDirectory)
           
 void setDataDirectoryFile(java.io.File dataDirectory)
           
 void setDataSource(javax.sql.DataSource dataSource)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourceSupport

public DataSourceSupport()

DataSourceSupport

public DataSourceSupport(javax.sql.DataSource dataSource)
Method Detail

getDataDirectoryFile

public java.io.File getDataDirectoryFile()

setDataDirectoryFile

public void setDataDirectoryFile(java.io.File dataDirectory)

getDataDirectory

public java.lang.String getDataDirectory()

setDataDirectory

public void setDataDirectory(java.lang.String dataDirectory)

getDataSource

public javax.sql.DataSource getDataSource()
                                   throws java.io.IOException
Throws:
java.io.IOException

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)

createDataSource

protected javax.sql.DataSource createDataSource()
                                         throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.