use of org.jboss.as.clustering.controller.ResourceDescriptor in project wildfly by wildfly.
the class LoadMetricResourceDefinition method register.
@Override
public ManagementResourceRegistration register(ManagementResourceRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubModel(this);
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()).addAttributes(SharedAttribute.class).addAttributes(Attribute.class);
new ReloadRequiredResourceRegistration(descriptor).register(registration);
return registration;
}
Aggregations