Package com.atlassian.jira.component
Class ComponentAccessorWorker
java.lang.Object
com.atlassian.jira.component.ComponentAccessorWorker
- All Implemented Interfaces:
ComponentAccessor.Worker
Worker class that insulates the API from the implementation dependencies in ComponentManager, etc.
- Since:
- v4.3
-
Method Summary
Modifier and TypeMethodDescription<T> T
getComponent
(Class<T> componentClass) <T> T
getComponentOfType
(Class<T> componentClass) <T> Optional<T>
getComponentSafely
(Class<T> componentClass) static ComponentAccessorWorker
Returns the singleton instance of this worker.<T> T
getOSGiComponentInstanceOfType
(Class<T> componentClass) <T> Optional<T>
getOSGiComponentInstanceOfTypeSafely
(Class<T> componentClass)
-
Method Details
-
getInstance
Returns the singleton instance of this worker.- Returns:
- see above
-
getComponentSafely
- Specified by:
getComponentSafely
in interfaceComponentAccessor.Worker
-
getComponent
- Specified by:
getComponent
in interfaceComponentAccessor.Worker
-
getComponentOfType
- Specified by:
getComponentOfType
in interfaceComponentAccessor.Worker
-
getOSGiComponentInstanceOfType
- Specified by:
getOSGiComponentInstanceOfType
in interfaceComponentAccessor.Worker
-
getOSGiComponentInstanceOfTypeSafely
- Specified by:
getOSGiComponentInstanceOfTypeSafely
in interfaceComponentAccessor.Worker
-