public class ComponentAccessorWorker extends Object implements ComponentAccessor.Worker
Modifier and Type | Method and Description |
---|---|
<T> T |
getComponent(Class<T> componentClass) |
<T> T |
getComponentOfType(Class<T> componentClass) |
<T> Optional<T> |
getComponentSafely(Class<T> componentClass) |
static ComponentAccessorWorker |
getInstance()
Returns the singleton instance of this worker.
|
<T> T |
getOSGiComponentInstanceOfType(Class<T> componentClass) |
@Nonnull public static ComponentAccessorWorker getInstance()
public <T> Optional<T> getComponentSafely(Class<T> componentClass)
getComponentSafely
in interface ComponentAccessor.Worker
@Nullable public <T> T getComponent(Class<T> componentClass)
getComponent
in interface ComponentAccessor.Worker
public <T> T getComponentOfType(Class<T> componentClass)
getComponentOfType
in interface ComponentAccessor.Worker
public <T> T getOSGiComponentInstanceOfType(Class<T> componentClass)
getOSGiComponentInstanceOfType
in interface ComponentAccessor.Worker
Copyright © 2002-2019 Atlassian. All Rights Reserved.