Package org.jboss.as.pojo.descriptor
Class CollectionConfig
java.lang.Object
org.jboss.as.pojo.descriptor.AbstractConfigVisitorNode
org.jboss.as.pojo.descriptor.ValueConfig
org.jboss.as.pojo.descriptor.CollectionConfig
- All Implemented Interfaces:
Serializable,ConfigVisitorNode,TypeProvider
- Direct Known Subclasses:
ListConfig,SetConfig
Collection meta data.
- Author:
- Ales Justin
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChildren(ConfigVisitor visitor, List<ConfigVisitorNode> nodes) Add children as needed.voidaddValue(ValueConfig value) protected abstract Collection<Object>protected Collection<Object>protected ObjectgetClassValue(Class<?> type) Get value, use type to narrow down exact value.protected ObjectgetPtValue(ParameterizedType type) Get value.voidsetElementType(String elementType) voidvisit(ConfigVisitor visitor) Visit metadata node.Methods inherited from class org.jboss.as.pojo.descriptor.ValueConfig
getIndex, getType, getValue, setIndex, setTypeMethods inherited from class org.jboss.as.pojo.descriptor.AbstractConfigVisitorNode
getChildren, getTempBeanInfo, getTempBeanInfo, getTempBeanInfo, getType, getType
-
Field Details
-
elementType
The element type
-
-
Constructor Details
-
CollectionConfig
public CollectionConfig()
-
-
Method Details
-
createDefaultInstance
-
createInstance
-
visit
Description copied from interface:ConfigVisitorNodeVisit metadata node. e.g. add dependencies to service builder.- Specified by:
visitin interfaceConfigVisitorNode- Overrides:
visitin classAbstractConfigVisitorNode- Parameters:
visitor- the config visitor
-
addChildren
Description copied from class:AbstractConfigVisitorNodeAdd children as needed.- Overrides:
addChildrenin classAbstractConfigVisitorNode- Parameters:
visitor- the current visitornodes- the nodes list to add to
-
getPtValue
Description copied from class:ValueConfigGet value.- Overrides:
getPtValuein classValueConfig- Parameters:
type- the parameterized type- Returns:
- value
-
getClassValue
Description copied from class:ValueConfigGet value, use type to narrow down exact value.- Specified by:
getClassValuein classValueConfig- Parameters:
type- the injection point type- Returns:
- value
-
setElementType
-
addValue
-