com.mycorp.examples.githubservice.impl
Class GitHubServiceAsync

java.lang.Object
  extended by com.mycorp.examples.githubservice.impl.GitHubServiceAsync
All Implemented Interfaces:
IGitHubServiceAsync

public class GitHubServiceAsync
extends java.lang.Object
implements IGitHubServiceAsync

Example OSGi service for retrieving some data from GitHub.

Since:
1.0

Constructor Summary
GitHubServiceAsync()
           
 
Method Summary
 java.util.concurrent.Future<java.lang.String[]> getRepositoriesAsync(java.lang.String pAccessToken)
          Gets all repositories.
static void main(java.lang.String[] args)
          Stand alone service test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitHubServiceAsync

public GitHubServiceAsync()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException,
                        java.util.concurrent.ExecutionException
Stand alone service test. To get an access token see see https://help.github.com/articles/creating-an-access-token- for-command-line-use/

Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException

getRepositoriesAsync

public java.util.concurrent.Future<java.lang.String[]> getRepositoriesAsync(java.lang.String pAccessToken)
Description copied from interface: IGitHubServiceAsync
Gets all repositories.

Specified by:
getRepositoriesAsync in interface IGitHubServiceAsync
Parameters:
pAccessToken - see https://help.github.com/articles/creating-an-access-token- for-command-line-use/
Returns:
All this repositories for this access token