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. |
OpenService |
createOpenService()
Deprecated.
Use
createFlattrService() instead, and replace all your
references to OpenService with FlattrService .
OpenService will be merged with FlattrService in
a future version. |
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.
This is used to merge FlattrService
and OpenService
in the future.
FlattrService
@Deprecated public OpenService createOpenService()
createFlattrService()
instead, and replace all your
references to OpenService
with FlattrService
.
OpenService
will be merged with FlattrService
in
a future version.OpenService
.OpenService
Copyright © 2010–2014. All rights reserved.