public class DefaultFlattrServiceFactory extends Object implements FlattrServiceFactory
FlattrServiceFactory.| Constructor and Description |
|---|
DefaultFlattrServiceFactory(ConsumerKey consumerKey)
Creates a new
DefaultFlattrServiceFactory with the given
ConsumerKey. |
DefaultFlattrServiceFactory(ConsumerKey consumerKey,
AccessToken accessToken)
|
| Modifier and Type | Method and Description |
|---|---|
FlattrAuthenticator |
getFlattrAuthenticator()
Creates a new
FlattrAuthenticator. |
FlattrService |
getFlattrService()
Creates a new
FlattrService instance, using a default access token. |
FlattrService |
getFlattrService(AccessToken at)
Creates a new
FlattrService instance. |
public DefaultFlattrServiceFactory(ConsumerKey consumerKey)
DefaultFlattrServiceFactory with the given
ConsumerKey.consumerKey - ConsumerKey to be used by this factorypublic DefaultFlattrServiceFactory(ConsumerKey consumerKey, AccessToken accessToken)
consumerKey - ConsumerKey to be used by this factoryaccessToken - AccessToken to be used by this factorypublic FlattrService getFlattrService()
FlattrServiceFactoryFlattrService instance, using a default access token. If no
default access token is set, an exception will be thrown.getFlattrService in interface FlattrServiceFactoryFlattrService instance. Each invocation creates a new instance.public FlattrService getFlattrService(AccessToken at)
FlattrServiceFactoryFlattrService instance.getFlattrService in interface FlattrServiceFactoryat - AccessToken to be used by the FlattrServiceFlattrService instance. Each invocation creates a new instance.public FlattrAuthenticator getFlattrAuthenticator()
FlattrServiceFactoryFlattrAuthenticator.getFlattrAuthenticator in interface FlattrServiceFactoryFlattrAuthenticator instance. Each invocation creates a new
instance.Copyright © 2010–2014. All rights reserved.