-
Enhancement
-
Resolution: Done
-
Major
-
26.0.0.Beta3
-
None
Currently, a resource definition meant to be deprecated can be built via:
ResourceDefinition.builder(ResourceRegistration, ResourceDescriptionResolver, SubsystemModel);
However, if the resource definition is not deprecated, a different builder method must be used:
ResourceDefinition.builder(ResourceRegistration, ResourceDescriptionResolver);
For convenience with resource definition hierarchies (e.g. in JGroups and Infinispan subsystems), it would simplify registration code if the first method could accept a null SubsystemModel, such that the 2nd method can delegate to the first.