@InjectableComponent public interface ComponentLocator
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. |
<T> T getComponentInstanceOfType(Class<T> type)
T
- the type of the component to look for.type
- the class of the component to look for. Must not be null.<T> T getComponent(Class<T> type)
getComponentInstanceOfType(Class)
but has a shorter and more
meaningful name.T
- the type of the component to look for.type
- the class of the component to look for. Must not be null.@Nonnull <T> com.google.common.base.Supplier<T> getComponentSupplier(Class<T> type)
Supplier
for the passed component.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-2019 Atlassian. All Rights Reserved.