public class

LinkedInOAuthServiceFactory

extends Object
java.lang.Object
   ↳ com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceFactory

Class Overview

A factory for creating LinkedInOAuthService objects.

Summary

Fields
private static LinkedInOAuthServiceFactory instance The instance.
Public Methods
LinkedInOAuthService createLinkedInOAuthService(LinkedInApiConsumer apiConsumer)
Creates a new LinkedInOAuthService object.
LinkedInOAuthService createLinkedInOAuthService(String consumerKey, String consumerSecret)
Creates a new LinkedInOAuthService object.
synchronized static LinkedInOAuthServiceFactory getInstance()
Gets the single instance of LinkedInOAuthServiceFactory.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static LinkedInOAuthServiceFactory instance

The instance.

Public Methods

public LinkedInOAuthService createLinkedInOAuthService (LinkedInApiConsumer apiConsumer)

Creates a new LinkedInOAuthService object.

Parameters
apiConsumer The api consumer
Returns
  • the linked in o auth service

public LinkedInOAuthService createLinkedInOAuthService (String consumerKey, String consumerSecret)

Creates a new LinkedInOAuthService object.

Parameters
consumerKey The consumer key
consumerSecret The consumer secret
Returns
  • the linked in o auth service

public static synchronized LinkedInOAuthServiceFactory getInstance ()

Gets the single instance of LinkedInOAuthServiceFactory.

Returns
  • single instance of LinkedInOAuthServiceFactory