public class JiraComponentLocator extends Object implements ComponentLocator
| Constructor and Description |
|---|
JiraComponentLocator() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getComponent(Class<T> type)
Find a component of the passed class in JIRA.
|
<T> T |
getComponentInstanceOfType(Class<T> type)
Find a component of the passed class in JIRA.
|
<T> com.google.common.base.Supplier<T> |
getComponentSupplier(Class<T> type)
Create a
Supplier for the passed component. |
String |
toString() |
public <T> T getComponentInstanceOfType(Class<T> type)
ComponentLocatorgetComponentInstanceOfType in interface ComponentLocatorT - the type of the component to look for.type - the class of the component to look for. Must not be null.public <T> T getComponent(Class<T> type)
ComponentLocatorComponentLocator.getComponentInstanceOfType(Class) but has a shorter and more
meaningful name.getComponent in interface ComponentLocatorT - the type of the component to look for.type - the class of the component to look for. Must not be null.@Nonnull public <T> com.google.common.base.Supplier<T> getComponentSupplier(Class<T> type)
ComponentLocatorSupplier for the passed component.getComponentSupplier in interface ComponentLocatorT - the type of the component to look for.type - the class of the component to look for. Must not be null.Supplier for the component.Copyright © 2002-2021 Atlassian. All Rights Reserved.