public class MockContainerContext extends Object implements com.atlassian.spring.container.ContainerContext
Constructor and Description |
---|
MockContainerContext() |
Modifier and Type | Method and Description |
---|---|
void |
autowireBean(Object bean) |
void |
autowireComponent(Object component) |
Object |
createCompleteComponent(Class clazz) |
Object |
createComponent(Class clazz) |
Object |
getComponent(Object key) |
<T> T |
getRealBean(Class<T> type) |
<T> T |
getRealBean(String name,
Class<T> clazz) |
boolean |
isSetup() |
void |
publishEvent(com.atlassian.event.Event e) |
void |
refresh() |
void |
registerBean(String name,
Object bean) |
void |
registerComponentSupplier(Class<?> clazz,
Supplier<?> factory) |
public void registerComponentSupplier(Class<?> clazz, Supplier<?> factory)
public void autowireBean(Object bean)
public boolean isSetup()
isSetup
in interface com.atlassian.spring.container.ContainerContext
public Object getComponent(Object key) throws com.atlassian.spring.container.ComponentNotFoundException
getComponent
in interface com.atlassian.spring.container.ContainerContext
com.atlassian.spring.container.ComponentNotFoundException
public <T> T getRealBean(Class<T> type)
public Object createComponent(Class clazz)
createComponent
in interface com.atlassian.spring.container.ContainerContext
public Object createCompleteComponent(Class clazz)
createCompleteComponent
in interface com.atlassian.spring.container.ContainerContext
public void autowireComponent(Object component)
autowireComponent
in interface com.atlassian.spring.container.ContainerContext
public void refresh()
refresh
in interface com.atlassian.spring.container.ContainerContext
public void publishEvent(com.atlassian.event.Event e)
publishEvent
in interface com.atlassian.spring.container.ContainerContext
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.