public class

OsgiComponentReference

extends ComponentReference<T>
implements Supplier<T> Supplier<T>
java.lang.Object
   ↳ com.atlassian.jira.component.ComponentReference<T>
     ↳ com.atlassian.jira.component.OsgiComponentReference<T>

Class Overview

Represents a reference like ComponentReference but for OSGi Components.

Summary

Public Constructors
OsgiComponentReference(Class<T> componentClass)
Public Methods
T get()
Produce an object.
[Expand]
Inherited Methods
From class com.atlassian.jira.component.ComponentReference
From class java.lang.Object
From interface com.atlassian.jira.util.Supplier
From interface com.atlassian.util.concurrent.Supplier

Public Constructors

public OsgiComponentReference (Class<T> componentClass)

Public Methods

public T get ()

Produce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.

Returns
  • the product, may be null if there are no objects available.