public class ComponentAccessorWorker extends Object implements ComponentAccessor.Worker
Constructor and Description |
---|
ComponentAccessorWorker() |
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) |
<T> T |
getOSGiComponentInstanceOfType(Class<T> componentClass) |
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-2018 Atlassian. All Rights Reserved.