Search in sources :

Example 6 with StandardResourceDescriptionResolver

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));
    }
}
Also used : ResourceDescriptionResolver(org.jboss.as.controller.descriptions.ResourceDescriptionResolver) StandardResourceDescriptionResolver(org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver) StandardResourceDescriptionResolver(org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver) Statistics(org.jipijapa.management.spi.Statistics)

Aggregations

StandardResourceDescriptionResolver (org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver)6 ManagementResourceRegistration (org.jboss.as.controller.registry.ManagementResourceRegistration)5 PathElement (org.jboss.as.controller.PathElement)4 Locale (java.util.Locale)3 ResourceBuilder (org.jboss.as.controller.ResourceBuilder)3 ClearWorkManagerStatisticsHandler (org.jboss.as.connector.dynamicresource.ClearWorkManagerStatisticsHandler)2 WorkManagerRuntimeAttributeReadHandler (org.jboss.as.connector.subsystems.resourceadapters.WorkManagerRuntimeAttributeReadHandler)2 WorkManagerRuntimeAttributeWriteHandler (org.jboss.as.connector.subsystems.resourceadapters.WorkManagerRuntimeAttributeWriteHandler)2 OperationStepHandler (org.jboss.as.controller.OperationStepHandler)2 SimpleAttributeDefinition (org.jboss.as.controller.SimpleAttributeDefinition)2 OverrideDescriptionProvider (org.jboss.as.controller.descriptions.OverrideDescriptionProvider)2 ResourceDescriptionResolver (org.jboss.as.controller.descriptions.ResourceDescriptionResolver)2 Resource (org.jboss.as.controller.registry.Resource)2 Statistics (org.jipijapa.management.spi.Statistics)2 Map (java.util.Map)1 ResourceBundle (java.util.ResourceBundle)1 ClearStatisticsHandler (org.jboss.as.connector.dynamicresource.ClearStatisticsHandler)1 StatisticsResourceDefinition (org.jboss.as.connector.dynamicresource.StatisticsResourceDefinition)1 PoolMetrics (org.jboss.as.connector.subsystems.common.pool.PoolMetrics)1 IronJacamarResource (org.jboss.as.connector.subsystems.resourceadapters.IronJacamarResource)1