Remove use of ManagementResourceRegistration.setRuntimeOnly()
-------------------------------------------------------------
Key: WFLY-5285
URL:
https://issues.jboss.org/browse/WFLY-5285
Project: WildFly
Issue Type: Task
Affects Versions: 10.0.0.Beta2
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 10.0.0.CR1
Replace use of to-be-deprecated ManagementResourceRegistration.setRuntimeOnly() with
setting this up via the ResourceDefinition.
Right thing to do, plus it blocks WFCORE-959.