public class GroupConfigType extends CompoundConfigType
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
GroupConfigType.FieldInfo |
ECS_CACHE_CTOR, MAP_PUT_METHOD, NI_GET_NEXT_SEGMENT, NI_NEXT_METHOD, NI_PREV_METHOD, OBJ_TO_STRING_METHOD, OPT_EMPTY_METHOD, OPT_OF_NULLABLE_METHOD, OPT_OR_ELSE_METHOD| Constructor and Description |
|---|
GroupConfigType(String containingName,
CompoundConfigType container,
boolean consumeSegment,
Class<?> class_,
AccessorFinder accessorFinder) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
acceptConfigurationValueIntoLeaf(LeafConfigType leafType,
NameIterator name,
ExpandingConfigSource.Cache cache,
io.smallrye.config.SmallRyeConfig config) |
void |
addField(ConfigType node) |
(package private) void |
generateAcceptConfigurationValueIntoLeaf(io.quarkus.gizmo.BytecodeCreator body,
LeafConfigType leafType,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle cache,
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 cache,
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 cache,
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 cache,
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,
ExpandingConfigSource.Cache cache,
io.smallrye.config.SmallRyeConfig config,
Object self,
String childName)
Get or create a child instance of this node.
|
(package private) void |
getDefaultValueIntoEnclosingGroup(Object enclosing,
ExpandingConfigSource.Cache cache,
io.smallrye.config.SmallRyeConfig config,
Field field)
Get the default value of this type into the enclosing element.
|
ConfigType |
getField(String name) |
(package private) Object |
getOrCreate(NameIterator name,
ExpandingConfigSource.Cache cache,
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 containingName,
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 cache,
io.quarkus.gizmo.ResultHandle smallRyeConfig) |
getConfigDefinition, getContainer, getContainer, getContainingName, isConsumeSegment, notLoadedException, toError, toErrorpublic GroupConfigType(String containingName, CompoundConfigType container, boolean consumeSegment, Class<?> class_, AccessorFinder accessorFinder)
public void load()
throws ClassNotFoundException
ConfigTypeload in class ConfigTypeClassNotFoundException - if a required class was not foundpublic io.quarkus.gizmo.ResultHandle writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle cache,
io.quarkus.gizmo.ResultHandle smallRyeConfig)
writeInitialization in class ConfigTypepublic ConfigType getField(String name)
public void addField(ConfigType node)
Object getChildObject(NameIterator name, ExpandingConfigSource.Cache cache, 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 cache,
io.quarkus.gizmo.ResultHandle config,
io.quarkus.gizmo.ResultHandle self,
String childName)
generateGetChildObject in class CompoundConfigTypeObject getOrCreate(NameIterator name, ExpandingConfigSource.Cache cache, 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 cache,
io.quarkus.gizmo.ResultHandle config)
generateGetOrCreate in class CompoundConfigTypevoid acceptConfigurationValueIntoLeaf(LeafConfigType leafType, NameIterator name, ExpandingConfigSource.Cache cache, 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 cache,
io.quarkus.gizmo.ResultHandle config)
generateAcceptConfigurationValueIntoLeaf in class CompoundConfigTypevoid setChildObject(NameIterator name, Object self, String containingName, Object value)
CompoundConfigTypesetChildObject in class CompoundConfigTypename - the child property name iteratorself - the instance of this configuration typecontainingName - 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 CompoundConfigTypevoid getDefaultValueIntoEnclosingGroup(Object enclosing, ExpandingConfigSource.Cache cache, 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 cache,
io.quarkus.gizmo.ResultHandle config)
generateGetDefaultValueIntoEnclosingGroup in class ConfigTypeCopyright © 2019 JBoss by Red Hat. All rights reserved.