public abstract class AbstractExoContainerTestCase extends Object
@ConfiguredBy({ @ConfigurationUnit(scope = ContainerScope.ROOT, path = "conf/custom.xml")
,@ConfigurationUnit(scope = ContainerScope.PORTAL, path = "conf/some.xml")
,@ConfigurationUnit(scope = ContainerScope.PORTAL, path = "conf/other.xml")})
| Constructor and Description |
|---|
AbstractExoContainerTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterContainerStart() |
protected void |
beforeContainerStart() |
protected <T,U extends T> |
getComponent(Class<T> key)
Get a component from current container
|
protected <T,I extends T> |
registerComponent(Class<T> key,
I instance)
Register a component to the container
|
protected <T,I extends T> |
replaceComponent(Class<T> key,
I instance)
Replace a component implementation by registering it against the current
container
|
void |
startContainer() |
public final void startContainer()
protected void afterContainerStart()
protected void beforeContainerStart()
protected <T,I extends T> void registerComponent(Class<T> key, I instance)
key - component keyinstance - component instance to registerprotected <T,U extends T> U getComponent(Class<T> key)
T - type of component (key)U - type of component implementation (type)key - class of the registered componentprotected <T,I extends T> void replaceComponent(Class<T> key, I instance)
key - component keyinstance - component instance to registerCopyright © 2003–2020 eXo Platform SAS. All rights reserved.