I'd like to add the following specific requirement to Alain's:
Make the generation of instance variables customizable, as it is already
for methods and expressions (by declaring either MethodTemplates or custom
Decoders).
At the moment it is, for example, not possible to generate instance
variables that have an annotation or a certain comment.
What would be needed is
- an .override <objectsToAttach> attribute similar to methodMenerator, e.g.
<objectsToAttach instanceVarTemplate="<pluginid>/<className>" and
- a handling of this in BeanPartFactory (i.e. via a generator factory).
The registered MyInstanceVariableTemplate class should be instantiated and
used instead of the default InstanceVariableTemplate class.