public class MockComponentLocator extends ComponentLocator
| Constructor and Description |
|---|
MockComponentLocator(Object... objects) |
| Modifier and Type | Method and Description |
|---|---|
MockComponentLocator |
add(Class<?> cls,
Object obj) |
MockComponentLocator |
add(Object obj) |
static MockComponentLocator |
create(Object... objects) |
protected <T> T |
getComponentInternal(Class<T> iface)
Gets the requested component, to be overridden for each application
|
protected <T> T |
getComponentInternal(Class<T> iface,
String componentId)
Gets the requested component, to be overridden for each application
|
protected <T> Collection<T> |
getComponentsInternal(Class<T> iface) |
convertClassToName, getComponent, getComponent, getComponents, getComponentSafely, isInitialized, setComponentLocatorpublic MockComponentLocator(Object... objects)
public MockComponentLocator add(Class<?> cls, Object obj)
public MockComponentLocator add(Object obj)
protected <T> T getComponentInternal(Class<T> iface)
ComponentLocatorgetComponentInternal in class ComponentLocatoriface - The interface to lookuppublic static MockComponentLocator create(Object... objects)
protected <T> Collection<T> getComponentsInternal(Class<T> iface)
getComponentsInternal in class ComponentLocatorprotected <T> T getComponentInternal(Class<T> iface, String componentId)
ComponentLocatorgetComponentInternal in class ComponentLocatoriface - The interface to lookupcomponentId - key of the componentCopyright © 2019 Atlassian. All rights reserved.