Class MockContainerContext
- java.lang.Object
-
- com.atlassian.bamboo.testutils.spring.MockContainerContext
-
- All Implemented Interfaces:
com.atlassian.spring.container.ContainerContext
public class MockContainerContext extends Object implements com.atlassian.spring.container.ContainerContext
-
-
Constructor Summary
Constructors Constructor Description MockContainerContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
registerComponentSupplier
public void registerComponentSupplier(Class<?> clazz, Supplier<?> factory)
-
autowireBean
public void autowireBean(Object bean)
-
isSetup
public boolean isSetup()
- Specified by:
isSetup
in interfacecom.atlassian.spring.container.ContainerContext
-
getComponent
public Object getComponent(Object key) throws com.atlassian.spring.container.ComponentNotFoundException
- Specified by:
getComponent
in interfacecom.atlassian.spring.container.ContainerContext
- Throws:
com.atlassian.spring.container.ComponentNotFoundException
-
getRealBean
public <T> T getRealBean(Class<T> type)
-
createComponent
public Object createComponent(Class clazz)
- Specified by:
createComponent
in interfacecom.atlassian.spring.container.ContainerContext
-
createCompleteComponent
public Object createCompleteComponent(Class clazz)
- Specified by:
createCompleteComponent
in interfacecom.atlassian.spring.container.ContainerContext
-
autowireComponent
public void autowireComponent(Object component)
- Specified by:
autowireComponent
in interfacecom.atlassian.spring.container.ContainerContext
-
refresh
public void refresh()
- Specified by:
refresh
in interfacecom.atlassian.spring.container.ContainerContext
-
publishEvent
public void publishEvent(com.atlassian.event.Event e)
- Specified by:
publishEvent
in interfacecom.atlassian.spring.container.ContainerContext
-
-