org.shredzone.flattr4j.spring
Interface FlattrServiceFactory

All Known Implementing Classes:
DefaultFlattrServiceFactory

public interface FlattrServiceFactory

A service factory primarily made for Spring.

The factory implementation is preconfigured with the consumer key and consumer secret on constuction time, optionally also with a default access token. When the FlattrServiceFactory bean is injected, it is already properly configured and ready to use.

Author:
Richard "Shred" Körber

Method Summary
 FlattrAuthenticator getFlattrAuthenticator()
          Creates a new FlattrAuthenticator.
 FlattrService getFlattrService()
          Creates a new FlattrService instance, using a default access token.
 FlattrService getFlattrService(AccessToken accessToken)
          Creates a new FlattrService instance.
 OpenService getOpenService()
          Creates a new OpenService instance.
 

Method Detail

getOpenService

OpenService getOpenService()
Creates a new OpenService instance.

Returns:
OpenService instance. Each invocation creates a new instance.

getFlattrService

FlattrService getFlattrService()
Creates a new FlattrService instance, using a default access token. If no default access token is set, an exception will be thrown.

Returns:
FlattrService instance. Each invocation creates a new instance.

getFlattrService

FlattrService getFlattrService(AccessToken accessToken)
Creates a new FlattrService instance.

Parameters:
accessToken - AccessToken to be used by the FlattrService
Returns:
FlattrService instance. Each invocation creates a new instance.

getFlattrAuthenticator

FlattrAuthenticator getFlattrAuthenticator()
Creates a new FlattrAuthenticator.

Returns:
FlattrAuthenticator instance. Each invocation creates a new instance.


Copyright © 2010-2012. All Rights Reserved.