public class MapConfigType extends CompoundConfigType
NI_GET_NEXT_SEGMENT, NI_HAS_NEXT_METHOD, NI_NEXT_METHOD, NI_PREV_METHOD, OBJ_TO_STRING_METHOD, OPT_EMPTY_METHOD, OPT_OF_NULLABLE_METHOD, OPT_OR_ELSE_METHOD, SRC_CONVERT_METHOD, SRC_GET_OPT_METHOD, SRC_GET_VALUE, SRC_GET_VALUES_METHOD| Constructor and Description |
|---|
MapConfigType(String containingName,
CompoundConfigType container,
boolean consumeSegment) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
acceptConfigurationValueIntoLeaf(LeafConfigType leafType,
NameIterator name,
io.smallrye.config.SmallRyeConfig config) |
(package private) void |
generateAcceptConfigurationValueIntoLeaf(io.quarkus.gizmo.BytecodeCreator body,
LeafConfigType leafType,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config) |
(package private) io.quarkus.gizmo.ResultHandle |
generateGetChildObject(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config,
io.quarkus.gizmo.ResultHandle self,
String childName) |
(package private) void |
generateGetDefaultValueIntoEnclosingGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle config) |
(package private) io.quarkus.gizmo.ResultHandle |
generateGetOrCreate(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config) |
(package private) void |
generateSetChildObject(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle self,
String containingName,
io.quarkus.gizmo.ResultHandle value) |
(package private) Object |
getChildObject(NameIterator name,
io.smallrye.config.SmallRyeConfig config,
Object self,
String childName)
Get or create a child instance of this node.
|
(package private) void |
getDefaultValueIntoEnclosingGroup(Object enclosing,
io.smallrye.config.SmallRyeConfig config,
Field field)
Get the default value of this type into the enclosing element.
|
(package private) TreeMap<String,Object> |
getOrCreate(NameIterator name,
io.smallrye.config.SmallRyeConfig config)
Get or create the instance of this root, recursively adding it to its parent if necessary.
|
void |
load()
Load all configuration classes to enable configuration to be instantiated.
|
(package private) void |
setChildObject(NameIterator name,
Object self,
String childName,
Object value)
Set a child object on the given instance.
|
io.quarkus.gizmo.ResultHandle |
writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle smallRyeConfig) |
getConfigDefinition, getContainer, getContainer, getContainingName, isConsumeSegment, notLoadedException, toError, toErrorpublic MapConfigType(String containingName, CompoundConfigType container, boolean consumeSegment)
public void load()
ConfigTypeload in class ConfigTypeObject getChildObject(NameIterator name, io.smallrye.config.SmallRyeConfig config, Object self, String childName)
CompoundConfigTypegetChildObject in class CompoundConfigTypename - the property name of the child instance (must not be null)config - the configuration (must not be null)self - the instance of this node (must not be null)childName - the static child name, or null if the child name is dynamicio.quarkus.gizmo.ResultHandle generateGetChildObject(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config,
io.quarkus.gizmo.ResultHandle self,
String childName)
generateGetChildObject in class CompoundConfigTypevoid setChildObject(NameIterator name, Object self, String childName, Object value)
CompoundConfigTypesetChildObject in class CompoundConfigTypename - the child property name iteratorself - the instance of this configuration typechildName - the child property namevalue - the child property valuevoid generateSetChildObject(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle self,
String containingName,
io.quarkus.gizmo.ResultHandle value)
generateSetChildObject in class CompoundConfigTypeTreeMap<String,Object> getOrCreate(NameIterator name, io.smallrye.config.SmallRyeConfig config)
CompoundConfigTypegetOrCreate in class CompoundConfigTypename - the name of this property node (must not be null)config - the configuration (must not be null)io.quarkus.gizmo.ResultHandle generateGetOrCreate(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config)
generateGetOrCreate in class CompoundConfigTypevoid acceptConfigurationValueIntoLeaf(LeafConfigType leafType, NameIterator name, io.smallrye.config.SmallRyeConfig config)
acceptConfigurationValueIntoLeaf in class CompoundConfigTypevoid generateAcceptConfigurationValueIntoLeaf(io.quarkus.gizmo.BytecodeCreator body,
LeafConfigType leafType,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config)
generateAcceptConfigurationValueIntoLeaf in class CompoundConfigTypepublic io.quarkus.gizmo.ResultHandle writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle smallRyeConfig)
writeInitialization in class ConfigTypevoid getDefaultValueIntoEnclosingGroup(Object enclosing, io.smallrye.config.SmallRyeConfig config, Field field)
ConfigTypegetDefaultValueIntoEnclosingGroup in class ConfigTypeenclosing - the instance of the enclosing type (must not be null)config - the configuration (must not be null)field - the field to read the value intovoid generateGetDefaultValueIntoEnclosingGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle config)
generateGetDefaultValueIntoEnclosingGroup in class ConfigTypeCopyright © 2019 JBoss by Red Hat. All rights reserved.