use of org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver in project wildfly by wildfly.
the class ManagementResourceDefinition method registerChildren.
@Override
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
super.registerChildren(resourceRegistration);
for (final String sublevelChildName : statistics.getChildrenNames()) {
Statistics sublevelStatistics = statistics.getChild(sublevelChildName);
ResourceDescriptionResolver sublevelResourceDescriptionResolver = new StandardResourceDescriptionResolver(sublevelChildName, sublevelStatistics.getResourceBundleName(), sublevelStatistics.getClass().getClassLoader());
resourceRegistration.registerSubModel(new ManagementResourceDefinition(PathElement.pathElement(sublevelChildName), sublevelResourceDescriptionResolver, sublevelStatistics, entityManagerFactoryLookup));
}
}
Aggregations