public class OptionalObjectConfigType extends ObjectConfigType
defaultValue, expectedTypeNI_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 |
|---|
OptionalObjectConfigType(String containingName,
CompoundConfigType container,
boolean consumeSegment,
String defaultValue,
Class<?> expectedType) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptConfigurationValue(NameIterator name,
io.smallrye.config.SmallRyeConfig config)
Handle a configuration key from the input file.
|
void |
acceptConfigurationValueIntoGroup(Object enclosing,
Field field,
NameIterator name,
io.smallrye.config.SmallRyeConfig config) |
void |
generateAcceptConfigurationValue(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config) |
void |
generateAcceptConfigurationValueIntoGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config) |
(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) void |
getDefaultValueIntoEnclosingGroup(Object enclosing,
io.smallrye.config.SmallRyeConfig config,
Field field)
Get the default value of this type into the enclosing element.
|
io.quarkus.gizmo.ResultHandle |
writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle config) |
checkLoaded, getItemClassloadgetConfigDefinition, getContainer, getContainer, getContainingName, isConsumeSegment, notLoadedException, toError, toErrorpublic OptionalObjectConfigType(String containingName, CompoundConfigType container, boolean consumeSegment, String defaultValue, Class<?> expectedType)
public void acceptConfigurationValue(NameIterator name, io.smallrye.config.SmallRyeConfig config)
LeafConfigTypeacceptConfigurationValue in class ObjectConfigTypename - the configuration property nameconfig - the source configurationpublic void generateAcceptConfigurationValue(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config)
generateAcceptConfigurationValue in class ObjectConfigTypevoid getDefaultValueIntoEnclosingGroup(Object enclosing, io.smallrye.config.SmallRyeConfig config, Field field)
ConfigTypegetDefaultValueIntoEnclosingGroup in class ObjectConfigTypeenclosing - 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 ObjectConfigTypepublic void acceptConfigurationValueIntoGroup(Object enclosing, Field field, NameIterator name, io.smallrye.config.SmallRyeConfig config)
acceptConfigurationValueIntoGroup in class ObjectConfigTypepublic void generateAcceptConfigurationValueIntoGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle name,
io.quarkus.gizmo.ResultHandle config)
generateAcceptConfigurationValueIntoGroup in class ObjectConfigTypepublic io.quarkus.gizmo.ResultHandle writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle config)
writeInitialization in class ObjectConfigTypeCopyright © 2019 JBoss by Red Hat. All rights reserved.