Extract common value generator out of BeanDefinitionPropertyValueCodeGenerator (original) (raw)

When writing custom code, it's handy to be able to pass basic types and let something generate a CodeBlock for us. Having to deal with the attribute being null (and then writing null) is also something that should be reusable.