Venice 0.751beta

nz.org.venice.quote
Class QuoteSourceFactory

java.lang.Object
  extended bynz.org.venice.quote.QuoteSourceFactory

public class QuoteSourceFactory
extends java.lang.Object

Contains static methods for creating File-, Sample- and DatabaseQuoteSources based on the user preference.

Author:
Pontus Strömdahl
See Also:
FileQuoteSource, DatabaseQuoteSource, PreferencesManager

Constructor Summary
QuoteSourceFactory()
           
 
Method Summary
static DatabaseQuoteSource createDatabaseQuoteSource()
          Create a database quote source directly using the user preferences.
static DatabaseQuoteSource createInternalQuoteSource()
          Create an internal database quote source.
static FileQuoteSource createSamplesQuoteSource()
          Create A file quote source directly using the in-built sample files as the quotes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteSourceFactory

public QuoteSourceFactory()
Method Detail

createInternalQuoteSource

public static DatabaseQuoteSource createInternalQuoteSource()
Create an internal database quote source.

Returns:
the database quote source

createSamplesQuoteSource

public static FileQuoteSource createSamplesQuoteSource()
Create A file quote source directly using the in-built sample files as the quotes.

Returns:
the file quote source

createDatabaseQuoteSource

public static DatabaseQuoteSource createDatabaseQuoteSource()
Create a database quote source directly using the user preferences.

Returns:
the database quote source

Venice 0.751beta