|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.quote.QuoteSourceManager
public class QuoteSourceManager
Returns the singleton reference to the quote source that the user has selected in their preferences. This class will also be updated when the user preferences has changed so the return quote source will always be update to date. Example:
List quotes = QuoteSourceManager.getSource().getQuotesForSymbol("CBA");
QuoteSource
Method Summary | |
---|---|
static void |
flush()
The user has changed their quote source preferences, flush singleton reference and create new instance. |
static QuoteSource |
getSource()
Creates and returns singleton instance of quote source which user has selected in the Preferences->Quote Source page. |
static void |
setSource(QuoteSource source)
Set the quote source to be the given quote source. |
static void |
shutdown()
Shutdown the quote source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setSource(QuoteSource source)
source
- the new quote sourcepublic static void flush()
public static void shutdown()
public static QuoteSource getSource()
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |