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)
ComponentLocator
getComponentInstanceOfType
in interface ComponentLocator
T
- 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)
ComponentLocator
ComponentLocator.getComponentInstanceOfType(Class)
but has a shorter and more
meaningful name.getComponent
in interface ComponentLocator
T
- 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)
ComponentLocator
Supplier
for the passed component.getComponentSupplier
in interface ComponentLocator
T
- 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-2015 Atlassian. All Rights Reserved.