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()
FlattrServiceFactory
FlattrService
instance, using a default access token. If no
default access token is set, an exception will be thrown.getFlattrService
in interface FlattrServiceFactory
FlattrService
instance. Each invocation creates a new instance.public FlattrService getFlattrService(AccessToken at)
FlattrServiceFactory
FlattrService
instance.getFlattrService
in interface FlattrServiceFactory
at
- AccessToken
to be used by the FlattrService
FlattrService
instance. Each invocation creates a new instance.public FlattrAuthenticator getFlattrAuthenticator()
FlattrServiceFactory
FlattrAuthenticator
.getFlattrAuthenticator
in interface FlattrServiceFactory
FlattrAuthenticator
instance. Each invocation creates a new
instance.Copyright © 2010–2017. All rights reserved.