public class MapConfig extends ValueConfig implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
keyType |
protected String |
valueType |
Constructor and Description |
---|
MapConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildren(ConfigVisitor visitor,
List<ConfigVisitorNode> nodes)
Add children as needed.
|
protected Map<Object,Object> |
createInstance() |
protected Object |
getClassValue(Class<?> type)
Get value, use type to narrow down exact value.
|
protected Object |
getPtValue(ParameterizedType type)
Get value.
|
void |
put(ValueConfig key,
ValueConfig value) |
void |
setKeyType(String keyType) |
void |
setValueType(String valueType) |
void |
visit(ConfigVisitor visitor)
Visit metadata node.
|
getIndex, getType, getValue, setIndex, setType
getChildren, getTempBeanInfo, getTempBeanInfo, getTempBeanInfo, getType, getType
public void visit(ConfigVisitor visitor)
ConfigVisitorNode
visit
in interface ConfigVisitorNode
visit
in class AbstractConfigVisitorNode
visitor
- the config visitorprotected void addChildren(ConfigVisitor visitor, List<ConfigVisitorNode> nodes)
AbstractConfigVisitorNode
addChildren
in class AbstractConfigVisitorNode
visitor
- the current visitornodes
- the nodes list to add toprotected Object getPtValue(ParameterizedType type)
ValueConfig
getPtValue
in class ValueConfig
type
- the parameterized typeprotected Object getClassValue(Class<?> type)
ValueConfig
getClassValue
in class ValueConfig
type
- the injection point typepublic void put(ValueConfig key, ValueConfig value)
public void setKeyType(String keyType)
public void setValueType(String valueType)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.