public class SportsFeedFactory
extends java.lang.Object
| Constructor and Description |
|---|
SportsFeedFactory() |
| Modifier and Type | Method and Description |
|---|---|
SportsFeedClient |
create()
Creates a client by using the environment var or loading the default config file
|
SportsFeedClient |
createFromConfig(SportsConfig config)
Creates a client by loading the config initialized SportsConfig object
|
SportsFeedClient |
createFromConfigFile(java.lang.String filename)
Creates a client by loading the config file
|
SportsFeedClient |
createFromSubscriberConf(jayeson.lib.delivery.module.subscriber.SubscriberConfig subConfig,
jayeson.lib.sports.receive.SportsFeedInConfig sportsConfig)
Creates a SportsFeedClient with the given config objects
|
public SportsFeedClient create()
public SportsFeedClient createFromConfigFile(java.lang.String filename)
filename - The name of the config filepublic SportsFeedClient createFromConfig(SportsConfig config)
config - The SportsConfig objectpublic SportsFeedClient createFromSubscriberConf(jayeson.lib.delivery.module.subscriber.SubscriberConfig subConfig, jayeson.lib.sports.receive.SportsFeedInConfig sportsConfig)
sportsConfig - - sports configurationsubConfig - - subscriber configuration