All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mobicents.ss7.extension.SS7MbeanPropertyAdd Maven / Gradle / Ivy

There is a newer version: 8.0.112
Show newest version
package org.mobicents.ss7.extension;

import org.jboss.as.controller.AbstractAddStepHandler;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.dmr.ModelNode;

import static org.mobicents.ss7.extension.SS7MbeanPropertyDefinition.PROPERTY_ATTRIBUTES;

class SS7MbeanPropertyAdd extends AbstractAddStepHandler {

    public static final SS7MbeanPropertyAdd INSTANCE = new SS7MbeanPropertyAdd();

    private SS7MbeanPropertyAdd() {
    }

    @Override
    protected void populateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
        SS7MbeanPropertyDefinition.NAME_ATTR.validateAndSet(operation, model);
        for (SimpleAttributeDefinition def : PROPERTY_ATTRIBUTES) {
            def.validateAndSet(operation, model);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy