use of org.jboss.as.clustering.controller.ManagementResourceRegistration in project wildfly by wildfly.
the class ModClusterSubsystemResourceDefinition method register.
@SuppressWarnings("deprecation")
@Override
public void register(SubsystemRegistration parent) {
ManagementResourceRegistration registration = parent.registerSubsystemModel(this);
registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver());
ServiceValueExecutorRegistry<ModClusterServiceMBean> registry = new ServiceValueExecutorRegistry<>();
ResourceServiceHandler handler = new ModClusterSubsystemServiceHandler(registry);
new SimpleResourceRegistration(descriptor, handler).register(registration);
new ProxyConfigurationResourceDefinition(registry).register(registration);
// Deprecated legacy operations which are exposed at the wrong location
if (parent.isRuntimeOnlyRegistrationValid()) {
new LegacyProxyHandler(registry).register(registration);
}
}
Aggregations