wildfly/wildfly — pull request #6372 by pferraro (2014-06-12 16:59:21+00:00)
Title: Refactor the way we register transformers for jgroups and infinispan subsystems

The previous strategy of defining all transformers in one monolithic InfinispanTransformers class was quickly becoming unmaintainable and difficult to follow. This PR introduces the following changes:
* enumeration of supported model versions, registration is now dynamic
* moved resource transformer methods into the relevant resource definition classes
* version dependent transformations utilize version comparisons (based on the version in which the relevant model change was made) to remove duplicated logic
* code is much more comprehensible