public interface ContainerConfig
BasicContainerConfig provides configuration inheritance;
- ExpressionContainerConfig extends BasicContainerConfig and
also provides expression evaluation in string values and properties.
Container configurations are stored by default in JSON format, for easy
sharing with the code found in the PHP implementation of Shindig, and for
easy readability. They can be loaded with the methods in
JsonContainerConfigLoader.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ContainerConfig.ConfigObserver
Interface for objects that get notified when container configurations are
changed.
|
static interface |
ContainerConfig.Transaction
A transaction object allows to create, modify and remove one or more
containers at a time.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_KEY |
static String |
DEFAULT_CONTAINER |
static String |
PARENT_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigObserver(ContainerConfig.ConfigObserver observer,
boolean notifyNow)
Adds an observer that will be notified when the configuration changes.
|
boolean |
getBool(String container,
String name) |
Collection<String> |
getContainers() |
int |
getInt(String container,
String name) |
<T> List<T> |
getList(String container,
String name) |
<T> Map<String,T> |
getMap(String container,
String name) |
Map<String,Object> |
getProperties(String container)
Fetch all properties for the given container configuration.
|
Object |
getProperty(String container,
String name) |
String |
getString(String container,
String name) |
ContainerConfig.Transaction |
newTransaction()
Creates a new transaction to create, modify or remove containers.
|
static final String PARENT_KEY
static final String CONTAINER_KEY
static final String DEFAULT_CONTAINER
Collection<String> getContainers()
Map<String,Object> getProperties(String container)
Object getProperty(String container, String name)
String getString(String container, String name)
int getInt(String container, String name)
boolean getBool(String container, String name)
<T> List<T> getList(String container, String name)
<T> Map<String,T> getMap(String container, String name)
ContainerConfig.Transaction newTransaction()
void addConfigObserver(ContainerConfig.ConfigObserver observer, boolean notifyNow)
observer - The observer to be notified.notifyNow - If true, the observer will receive an immediate
notification for the current configuration.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.