public abstract class CollectionConfig extends ValueConfig implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
elementType
The element type
|
Constructor and Description |
---|
CollectionConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildren(ConfigVisitor visitor,
List<ConfigVisitorNode> nodes)
Add children as needed.
|
void |
addValue(ValueConfig value) |
protected abstract Collection<Object> |
createDefaultInstance() |
protected Collection<Object> |
createInstance() |
protected Object |
getClassValue(Class<?> type)
Get value, use type to narrow down exact value.
|
protected Object |
getPtValue(ParameterizedType type)
Get value.
|
void |
setElementType(String elementType) |
void |
visit(ConfigVisitor visitor)
Visit metadata node.
|
getIndex, getType, getValue, setIndex, setType
getChildren, getTempBeanInfo, getTempBeanInfo, getTempBeanInfo, getType, getType
protected String elementType
protected abstract Collection<Object> createDefaultInstance()
protected Collection<Object> createInstance()
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 setElementType(String elementType)
public void addValue(ValueConfig value)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.