|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.twitterapime.platform.PlatformProviderSelector
public final class PlatformProviderSelector
This class is responsible for managing the platform providers available in this API, besides defining which one is current one. The definition of which platform provide is the selected will indicate which underlying implementation will provide all the services provided by this API.
Platform Provider selector always defines a given platform provider by default, however, the developer can select another one.
PlatformProvider
Method Summary | |
---|---|
static PlatformProvider[] |
getAvailableProviders()
Get all the platform providers supported by this API. |
static PlatformProvider |
getCurrentProvider()
Get the current platform provider which is providing all the services of this API. |
static PlatformProvider |
getDefaultProvider()
Get the default platform provider suggested by Platform Provider selector. |
static void |
select(PlatformProvider pp)
Set the given platform provider object as the current platform that will provide the services available in this API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlatformProvider[] getAvailableProviders()
Get all the platform providers supported by this API.
public static PlatformProvider getCurrentProvider()
Get the current platform provider which is providing all the services of this API.
public static PlatformProvider getDefaultProvider()
Get the default platform provider suggested by Platform Provider selector.
public static void select(PlatformProvider pp)
Set the given platform provider object as the current platform that will provide the services available in this API.
pp
- The platform provider object.
java.lang.IllegalArgumentException
- If pp is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |