com.atlassian.jira.applinks
Class JiraApplicationLinkService

java.lang.Object
  extended by com.atlassian.jira.applinks.JiraApplicationLinkService
All Implemented Interfaces:
com.atlassian.applinks.api.ApplicationLinkService, Startable

public class JiraApplicationLinkService
extends Object
implements com.atlassian.applinks.api.ApplicationLinkService, Startable

This class delegates to the ApplicationLinkService provided by UAL. Because this ApplicationLinkService lives within the bundled applinks plugin, we have to use the OsgiServiceProxyFactory to get a reference to this service, after the plugin system has finished starting up.

Since:
v4.3

Constructor Summary
JiraApplicationLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
           
 
Method Summary
 com.atlassian.applinks.api.ApplicationLink getApplicationLink(com.atlassian.applinks.api.ApplicationId id)
           
 Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks()
           
 Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
           
 com.atlassian.applinks.api.ApplicationLink getPrimaryApplicationLink(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraApplicationLinkService

public JiraApplicationLinkService(com.atlassian.applinks.host.OsgiServiceProxyFactory osgiServiceProxyFactory)
Method Detail

getApplicationLink

public com.atlassian.applinks.api.ApplicationLink getApplicationLink(com.atlassian.applinks.api.ApplicationId id)
                                                              throws com.atlassian.applinks.api.TypeNotInstalledException
Specified by:
getApplicationLink in interface com.atlassian.applinks.api.ApplicationLinkService
Throws:
com.atlassian.applinks.api.TypeNotInstalledException

getApplicationLinks

public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks()
Specified by:
getApplicationLinks in interface com.atlassian.applinks.api.ApplicationLinkService

getApplicationLinks

public Iterable<com.atlassian.applinks.api.ApplicationLink> getApplicationLinks(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
Specified by:
getApplicationLinks in interface com.atlassian.applinks.api.ApplicationLinkService

getPrimaryApplicationLink

public com.atlassian.applinks.api.ApplicationLink getPrimaryApplicationLink(Class<? extends com.atlassian.applinks.api.ApplicationType> type)
Specified by:
getPrimaryApplicationLink in interface com.atlassian.applinks.api.ApplicationLinkService

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.


Copyright © 2002-2012 Atlassian. All Rights Reserved.