Affects Version/s: 1.6
Fix Version/s: 3.0
Operating System: other
Currently, SetNextRule always invokes the target method from its end method.
But there is no reason why it can't invoke the target from begin. This would be
useful in cases where it is desirable to build the parent/child relationship
before processing nested xml. In particular, using BeanPropertySetterRule
against nested xml elements can cause the setter methods to be called on a bean
before its parent/child relationship is set up and sometimes this is bad.
It should be possible to add options to the constructor of SetNextRule to
indicate if fire-at-end (existing) or fire-at-begin (new) behaviour is desired.
Of course the xmlrules module would need to be updated too.
And this feature probably could be applied to a few other rules.
|Field||Original Value||New Value|
|Affects Version/s||1.6 Final [ 12311712 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Assignee||Simone Tripodi [ simone.tripodi ]|
|Fix Version/s||3.0 [ 12316679 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|