|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionFactoryLocator
A ServiceLocator for ConnectionFactory
instances.
Supports lookup by providerId and by apiType.
ConnectionFactory
Method Summary | ||
---|---|---|
|
getConnectionFactory(java.lang.Class<A> apiType)
Lookup a ConnectionFactory by apiType; for example, FacebookApi.class. |
|
ConnectionFactory<?> |
getConnectionFactory(java.lang.String providerId)
Lookup a ConnectionFactory by providerId; for example, "facebook". |
|
java.util.Set<java.lang.String> |
registeredProviderIds()
Returns the set of providerIds for which a ConnectionFactory is registered; for example, { "twitter", "facebook", "foursquare" }
Elements in this set can be passed to getConnectionFactory(String) to fetch a specific factory instance. |
Method Detail |
---|
ConnectionFactory<?> getConnectionFactory(java.lang.String providerId)
<A> ConnectionFactory<A> getConnectionFactory(java.lang.Class<A> apiType)
ConnectionRepository.findPrimaryConnectionToApi(Class)
java.util.Set<java.lang.String> registeredProviderIds()
ConnectionFactory
is registered; for example, { "twitter", "facebook", "foursquare" }
Elements in this set can be passed to getConnectionFactory(String)
to fetch a specific factory instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |