public abstract class ConfigType extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static io.quarkus.gizmo.MethodDescriptor |
NI_GET_NEXT_SEGMENT |
(package private) static io.quarkus.gizmo.MethodDescriptor |
NI_HAS_NEXT_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
NI_NEXT_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
NI_PREV_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
OBJ_TO_STRING_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
OPT_EMPTY_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
OPT_OF_NULLABLE_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
OPT_OR_ELSE_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
SRC_CONVERT_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
SRC_GET_OPT_METHOD |
(package private) static io.quarkus.gizmo.MethodDescriptor |
SRC_GET_VALUE |
(package private) static io.quarkus.gizmo.MethodDescriptor |
SRC_GET_VALUES_METHOD |
| Constructor and Description |
|---|
ConfigType(String containingName,
CompoundConfigType container,
boolean consumeSegment) |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
generateGetDefaultValueIntoEnclosingGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle config) |
ConfigDefinition |
getConfigDefinition() |
CompoundConfigType |
getContainer() |
<T extends CompoundConfigType> |
getContainer(Class<T> expect) |
String |
getContainingName() |
(package private) abstract void |
getDefaultValueIntoEnclosingGroup(Object enclosing,
io.smallrye.config.SmallRyeConfig config,
Field field)
Get the default value of this type into the enclosing element.
|
boolean |
isConsumeSegment() |
abstract void |
load()
Load all configuration classes to enable configuration to be instantiated.
|
protected static IllegalStateException |
notLoadedException()
A reusable method which returns an exception that can be thrown when a configuration
node is used without its class being loaded.
|
(package private) static IllegalAccessError |
toError(IllegalAccessException e) |
(package private) static InstantiationError |
toError(InstantiationException e) |
abstract io.quarkus.gizmo.ResultHandle |
writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle smallRyeConfig) |
static final io.quarkus.gizmo.MethodDescriptor NI_PREV_METHOD
static final io.quarkus.gizmo.MethodDescriptor NI_NEXT_METHOD
static final io.quarkus.gizmo.MethodDescriptor NI_HAS_NEXT_METHOD
static final io.quarkus.gizmo.MethodDescriptor NI_GET_NEXT_SEGMENT
static final io.quarkus.gizmo.MethodDescriptor SRC_CONVERT_METHOD
static final io.quarkus.gizmo.MethodDescriptor SRC_GET_OPT_METHOD
static final io.quarkus.gizmo.MethodDescriptor SRC_GET_VALUE
static final io.quarkus.gizmo.MethodDescriptor SRC_GET_VALUES_METHOD
static final io.quarkus.gizmo.MethodDescriptor OBJ_TO_STRING_METHOD
static final io.quarkus.gizmo.MethodDescriptor OPT_OR_ELSE_METHOD
static final io.quarkus.gizmo.MethodDescriptor OPT_OF_NULLABLE_METHOD
static final io.quarkus.gizmo.MethodDescriptor OPT_EMPTY_METHOD
ConfigType(String containingName, CompoundConfigType container, boolean consumeSegment)
static IllegalAccessError toError(IllegalAccessException e)
static InstantiationError toError(InstantiationException e)
public String getContainingName()
public CompoundConfigType getContainer()
public <T extends CompoundConfigType> T getContainer(Class<T> expect)
public boolean isConsumeSegment()
public abstract void load()
throws ClassNotFoundException
ClassNotFoundException - if a required class was not foundprotected static IllegalStateException notLoadedException()
abstract void getDefaultValueIntoEnclosingGroup(Object enclosing, io.smallrye.config.SmallRyeConfig config, Field field)
enclosing - the instance of the enclosing type (must not be null)config - the configuration (must not be null)field - the field to read the value intoabstract void generateGetDefaultValueIntoEnclosingGroup(io.quarkus.gizmo.BytecodeCreator body,
io.quarkus.gizmo.ResultHandle enclosing,
io.quarkus.gizmo.MethodDescriptor setter,
io.quarkus.gizmo.ResultHandle config)
public abstract io.quarkus.gizmo.ResultHandle writeInitialization(io.quarkus.gizmo.BytecodeCreator body,
AccessorFinder accessorFinder,
io.quarkus.gizmo.ResultHandle smallRyeConfig)
public ConfigDefinition getConfigDefinition()
Copyright © 2019 JBoss by Red Hat. All rights reserved.