use of org.jboss.as.clustering.controller.ParentResourceServiceHandler in project wildfly by wildfly.
the class BackupsResourceDefinition method register.
@Override
public void register(ManagementResourceRegistration parentRegistration) {
ManagementResourceRegistration registration = parentRegistration.registerSubModel(this);
ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver());
ResourceServiceHandler handler = new ParentResourceServiceHandler<>(this.builderFactory);
new SimpleResourceRegistration(descriptor, handler).register(registration);
new BackupResourceDefinition(this.builderFactory, this.runtimeRegistration).register(registration);
}
Aggregations