org.apache.shindig.config
Class AbstractContainerConfig
java.lang.Object
org.apache.shindig.config.AbstractContainerConfig
- All Implemented Interfaces:
- ContainerConfig
- Direct Known Subclasses:
- JsonContainerConfig
public abstract class AbstractContainerConfig
- extends Object
- implements ContainerConfig
Base class for container configurations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContainerConfig
public AbstractContainerConfig()
getString
public String getString(String container,
String property)
- Specified by:
getString in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container, or null
if it is not defined or not a string.
getInt
public int getInt(String container,
String property)
- Specified by:
getInt in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container, or 0
if it is not defined or not a number.
getBool
public boolean getBool(String container,
String property)
- Specified by:
getBool in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container, or
false if it is not defined or not a boolean.
getList
public <T> List<T> getList(String container,
String property)
- Specified by:
getList in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container, or an
empty list if it is not defined or not a list.
getMap
public <T> Map<String,T> getMap(String container,
String property)
- Specified by:
getMap in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container, or an
empty map if it is not defined or not a map.
getContainers
public Collection<String> getContainers()
- Specified by:
getContainers in interface ContainerConfig
- Returns:
- The set of all containers that are currently registered.
getProperties
public Map<String,Object> getProperties(String container)
- Description copied from interface:
ContainerConfig
- Fetch all properties for the given container configuration.
- Specified by:
getProperties in interface ContainerConfig
getProperty
public abstract Object getProperty(String container,
String name)
- Specified by:
getProperty in interface ContainerConfig
- Returns:
- The configuration property stored under the given name for the given container.
Copyright © 2007-2012. All Rights Reserved.