Class OsgiComponentReference<T>

java.lang.Object
com.atlassian.jira.component.ComponentReference<T>
com.atlassian.jira.component.OsgiComponentReference<T>
All Implemented Interfaces:
Supplier<T>, Serializable, Supplier<T>

public class OsgiComponentReference<T> extends ComponentReference<T> implements Supplier<T>, Supplier<T>
Represents a reference like ComponentReference but for OSGi Components.
Since:
6.4
See Also:
  • Constructor Details

    • OsgiComponentReference

      public OsgiComponentReference(@Nonnull Class<T> componentClass)
  • Method Details

    • get

      public T get()
      Description copied from interface: Supplier
      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.
      Specified by:
      get in interface Supplier<T>
      Specified by:
      get in interface Supplier<T>
      Overrides:
      get in class ComponentReference<T>
      Returns:
      the product, may be null if there are no objects available.