public class ContainerBuilder extends Object
An helper for building a root container and a portal container. I have done several attempt to make easily and safe root/portal container boot for unit test. This one is my best attempt so far.
Note that the portal container are booted in the order they are declared first.
| Constructor and Description |
|---|
ContainerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static org.exoplatform.container.RootContainer |
bootstrap(URL configurationURL,
String... profiles) |
org.exoplatform.container.RootContainer |
build() |
ContainerBuilder |
withLoader(ClassLoader loader) |
ContainerBuilder |
withPortal(String configPath) |
ContainerBuilder |
withPortal(String portalName,
String configPath) |
ContainerBuilder |
withPortal(String portalName,
URL configURL) |
ContainerBuilder |
withPortal(URL configURL) |
ContainerBuilder |
withRoot(String configPath) |
ContainerBuilder |
withRoot(URL configURL) |
public ContainerBuilder withRoot(String configPath)
public ContainerBuilder withRoot(URL configURL)
public ContainerBuilder withPortal(String configPath)
public ContainerBuilder withPortal(String portalName, String configPath)
public ContainerBuilder withPortal(URL configURL)
public ContainerBuilder withPortal(String portalName, URL configURL)
public ContainerBuilder withLoader(ClassLoader loader)
public org.exoplatform.container.RootContainer build()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.