Top Description Constructors Methods
com.typesafe.config.impl

public Class ConfigBeanImpl

extends Object
Class Inheritance
Imports
java.beans.BeanInfo, .IntrospectionException, .Introspector, .PropertyDescriptor, java.lang.reflect.Field, .InvocationTargetException, .Method, .ParameterizedType, .Type, java.util.ArrayList, .HashMap, .HashSet, .List, .Map, .Set, java.time.Duration, com.typesafe.config.Config, .ConfigObject, .ConfigList, .ConfigException, .ConfigMemorySize, .ConfigValue, .ConfigValueType, .Optional

Internal implementation detail, not ABI stable, do not touch. For use only by the com.typesafe.config package.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <
type of the bean
T
>
T

Returns:

the bean instance
createInternal
(Config
config to use
config
,
Class<T>
class of the bean
clazz
)

This is public ONLY for use by the "config" package, DO NOT USE this ABI may change.

private static Field
getField(Class<T> beanClass, String fieldName)

private static Object
getListValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)

private static Object
getSetValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)

private static Object
getValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)

private static ConfigValueType
getValueTypeOrNull(Class<?> parameterClass)

private static boolean
private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConfigBeanImplback to summary
public ConfigBeanImpl()

Method Detail

createInternalback to summary
public static <T> T createInternal(Config config, Class<T> clazz)

This is public ONLY for use by the "config" package, DO NOT USE this ABI may change.

Parameters
<T>
type of the bean
config:Config

config to use

clazz:Class<T>

class of the bean

Returns:T

the bean instance

getFieldback to summary
private static Field getField(Class<T> beanClass, String fieldName)
getListValueback to summary
private static Object getListValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)
getSetValueback to summary
private static Object getSetValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)
getValueback to summary
private static Object getValue(Class<?> beanClass, Type parameterType, Class<?> parameterClass, Config config, String configPropName)
getValueTypeOrNullback to summary
private static ConfigValueType getValueTypeOrNull(Class<?> parameterClass)
hasAtLeastOneBeanPropertyback to summary
private static boolean hasAtLeastOneBeanProperty(Class<?> clazz)
isOptionalPropertyback to summary
private static boolean isOptionalProperty(Class<T> beanClass, PropertyDescriptor beanProp)