|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InjectableComponent public interface ComponentLocator
A locator that allows components to be looked up at runtime.
Method Summary | ||
---|---|---|
|
getComponent(Class<T> type)
Find a component of the passed class in JIRA. |
|
|
getComponentInstanceOfType(Class<T> type)
Find a component of the passed class in JIRA. |
|
|
getComponentSupplier(Class<T> type)
Create a Supplier for the passed component. |
Method Detail |
---|
<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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |