RootBeanDefinition properties.
Generates code in the following form:
beanDefinition.setPrimary(true); beanDefinition.setScope(BeanDefinition.SCOPE_PROTOTYPE); ...
The generated code expects the following variables to be available:
beanDefinition: the RootBeanDefinition to configureNote that this generator does not set the InstanceSupplier.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Predicate | |
| private static final String | |
| private static final RootBeanDefinition | |
| private final RuntimeHints | |
| private final ValueCodeGenerator |
| Access | Constructor and Description |
|---|---|
| pack-priv | BeanDefinitionPropertiesCodeGenerator(RuntimeHints hints, Predicate<String> attributeFilter, GeneratedMethods generatedMethods, List<ValueCodeGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | addInitDestroyMethods(CodeBlock.
|
| private void | |
| private void | |
| private <B extends BeanDefinition, T> void | addStatementForValue(CodeBlock.
|
| private <B extends BeanDefinition, T> void | addStatementForValue(CodeBlock.
|
| private <B extends BeanDefinition, T> void | addStatementForValue(CodeBlock.
|
| private CodeBlock | Returns: the existing value or a form of(castType) valueCode if a
cast is necessarywhether a cast is necessary castNecessary, Class<?> the type to cast to castType, CodeBlock the code for the value valueCode)Cast the specified |
| pack-priv CodeBlock | |
| private CodeBlock | |
| private Class | |
| private Map | |
| private boolean | |
| private boolean | |
| private boolean | |
| private void | |
| private Object | |
| private CodeBlock |
| attributeFilter | back to summary |
|---|---|
| private final Predicate<String> attributeFilter | |
| BEAN_DEFINITION_VARIABLE | back to summary |
|---|---|
| private static final String BEAN_DEFINITION_VARIABLE | |
| DEFAULT_BEAN_DEFINITION | back to summary |
|---|---|
| private static final RootBeanDefinition DEFAULT_BEAN_DEFINITION | |
| hints | back to summary |
|---|---|
| private final RuntimeHints hints | |
| valueCodeGenerator | back to summary |
|---|---|
| private final ValueCodeGenerator valueCodeGenerator | |
| BeanDefinitionPropertiesCodeGenerator | back to summary |
|---|---|
| pack-priv BeanDefinitionPropertiesCodeGenerator(RuntimeHints hints, Predicate<String> attributeFilter, GeneratedMethods generatedMethods, List<ValueCodeGenerator. | |
| addAttributes | back to summary |
|---|---|
| private void addAttributes(CodeBlock. | |
| addConstructorArgumentValues | back to summary |
|---|---|
| private void addConstructorArgumentValues(CodeBlock. | |
| addInitDestroyHint | back to summary |
|---|---|
| private void addInitDestroyHint(Class<?> beanUserClass, String methodName) | |
| addInitDestroyMethods | back to summary |
|---|---|
| private void addInitDestroyMethods(CodeBlock. | |
| addPropertyValues | back to summary |
|---|---|
| private void addPropertyValues(CodeBlock. | |
| addQualifiers | back to summary |
|---|---|
| private void addQualifiers(CodeBlock. | |
| addStatementForValue | back to summary |
|---|---|
| private <B extends BeanDefinition, T> void addStatementForValue(CodeBlock. | |
| addStatementForValue | back to summary |
|---|---|
| private <B extends BeanDefinition, T> void addStatementForValue(CodeBlock. | |
| addStatementForValue | back to summary |
|---|---|
private <B extends BeanDefinition, T> void addStatementForValue(CodeBlock.
| |
| castIfNecessary | back to summary |
|---|---|
| private CodeBlock castIfNecessary(boolean castNecessary, Class<?> castType, CodeBlock valueCode) Cast the specified | |
| generateCode | back to summary |
|---|---|
| pack-priv CodeBlock generateCode(RootBeanDefinition beanDefinition) | |
| generateValue | back to summary |
|---|---|
| private CodeBlock generateValue(String name, Object value) | |
| getInfrastructureType | back to summary |
|---|---|
| private Class | |
| getWriteMethods | back to summary |
|---|---|
| private Map | |
| hasDependsOn | back to summary |
|---|---|
| private boolean hasDependsOn(String[] defaultValue, String[] actualValue) | |
| hasRole | back to summary |
|---|---|
| private boolean hasRole(int defaultValue, int actualValue) | |
| hasScope | back to summary |
|---|---|
| private boolean hasScope(String defaultValue, String actualValue) | |
| registerReflectionHints | back to summary |
|---|---|
| private void registerReflectionHints(RootBeanDefinition beanDefinition, Method writeMethod) | |
| toRole | back to summary |
|---|---|
| private Object toRole(int value) | |
| toStringVarArgs | back to summary |
|---|---|
| private CodeBlock toStringVarArgs(String[] strings) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| pack-priv static void | |
| pack-priv static void |
| threadLocal | back to summary |
|---|---|
| private static final ThreadLocal<ArrayDeque<String>> threadLocal | |
| PropertyNamesStack | back to summary |
|---|---|
| pack-priv PropertyNamesStack() | |
| peek | back to summary |
|---|---|
pack-priv static String peek()
| |
| pop | back to summary |
|---|---|
| pack-priv static void pop() | |
| push | back to summary |
|---|---|
| pack-priv static void push(String name) | |