Search in sources :

Example 1 with ParentResourceServiceHandler

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);
}
Also used : SimpleResourceRegistration(org.jboss.as.clustering.controller.SimpleResourceRegistration) ManagementResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration) ParentResourceServiceHandler(org.jboss.as.clustering.controller.ParentResourceServiceHandler) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor) ParentResourceServiceHandler(org.jboss.as.clustering.controller.ParentResourceServiceHandler)

Aggregations

ParentResourceServiceHandler (org.jboss.as.clustering.controller.ParentResourceServiceHandler)1 ResourceDescriptor (org.jboss.as.clustering.controller.ResourceDescriptor)1 ResourceServiceHandler (org.jboss.as.clustering.controller.ResourceServiceHandler)1 SimpleResourceRegistration (org.jboss.as.clustering.controller.SimpleResourceRegistration)1 ManagementResourceRegistration (org.jboss.as.controller.registry.ManagementResourceRegistration)1