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, setTypegetChildren, getTempBeanInfo, getTempBeanInfo, getTempBeanInfo, getType, getTypeprotected String elementType
protected abstract Collection<Object> createDefaultInstance()
protected Collection<Object> createInstance()
public void visit(ConfigVisitor visitor)
ConfigVisitorNodevisit in interface ConfigVisitorNodevisit in class AbstractConfigVisitorNodevisitor - the config visitorprotected void addChildren(ConfigVisitor visitor, List<ConfigVisitorNode> nodes)
AbstractConfigVisitorNodeaddChildren in class AbstractConfigVisitorNodevisitor - the current visitornodes - the nodes list to add toprotected Object getPtValue(ParameterizedType type)
ValueConfiggetPtValue in class ValueConfigtype - the parameterized typeprotected Object getClassValue(Class<?> type)
ValueConfiggetClassValue in class ValueConfigtype - the injection point typepublic void setElementType(String elementType)
public void addValue(ValueConfig value)
Copyright © 2021 JBoss by Red Hat. All rights reserved.