public final class FlattrFactory extends Object
Modifier and Type | Method and Description |
---|---|
FlattrService |
createFlattrService()
Creates a
FlattrService that is only able to execute commands without
scope. |
FlattrService |
createFlattrService(AccessToken accessToken)
Creates a
FlattrService for the given access token. |
FlattrService |
createFlattrService(String accessToken)
Creates a
FlattrService for the given access token. |
static FlattrFactory |
getInstance()
Retrieves an instance of the
FlattrFactory . |
public static FlattrFactory getInstance()
FlattrFactory
. The factory is a singleton.FlattrFactory
public FlattrService createFlattrService(String accessToken)
FlattrService
for the given access token. The returned service is
associated to the user of the access token.accessToken
- Access tokenFlattrService
public FlattrService createFlattrService(AccessToken accessToken)
FlattrService
for the given access token. The returned service is
associated to the user of the access token.accessToken
- AccessToken
instanceFlattrService
public FlattrService createFlattrService()
FlattrService
that is only able to execute commands without
scope.FlattrService
Copyright © 2010–2017. All rights reserved.