Separate Spring-specific logic from field-declaration-specific logic #2579
Labels
comp-codegen
Issue is related to code generator
comp-spring
Issue is related to Spring projects support
ctg-refactoring
Issue related to refactoring process
Description
Right now
CgSpringVariableConstructor
seems to be responsible for both:The latter of its responsibilities isn't Spring-specific and I think should be extracted to separate decorator of
VariableConstructor
.Potential alternatives
Instead of decorating
VariableConstructor
we can make its constructor acceptVariableConstructorContext
and decorateVariableConstructorContext
instead, which may be easier given the recursive nature of theVariableConstructor
that is hard to combine with decorators.The text was updated successfully, but these errors were encountered: