Search in sources :

Example 1 with ServiceVerificationHandler

use of org.jboss.as.controller.ServiceVerificationHandler in project wildfly by wildfly.

the class HandlerAddHandler method performRuntime.

@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
    PathAddress pathAddress = PathAddress.pathAddress(operation.get(ADDRESS));
    String providerAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
    EntityProviderService providerService = EntityProviderService.getService(context, providerAlias);
    Handler handler = toHandlerConfig(context, model);
    providerService.addHandler(handler);
}
Also used : PathAddress(org.jboss.as.controller.PathAddress) Handler(org.picketlink.config.federation.handler.Handler) AbstractAddStepHandler(org.jboss.as.controller.AbstractAddStepHandler) UniqueTypeValidationStepHandler(org.wildfly.extension.picketlink.common.model.validator.UniqueTypeValidationStepHandler) AlternativeAttributeValidationStepHandler(org.wildfly.extension.picketlink.common.model.validator.AlternativeAttributeValidationStepHandler) ServiceVerificationHandler(org.jboss.as.controller.ServiceVerificationHandler) EntityProviderService(org.wildfly.extension.picketlink.federation.service.EntityProviderService)

Aggregations

AbstractAddStepHandler (org.jboss.as.controller.AbstractAddStepHandler)1 PathAddress (org.jboss.as.controller.PathAddress)1 ServiceVerificationHandler (org.jboss.as.controller.ServiceVerificationHandler)1 Handler (org.picketlink.config.federation.handler.Handler)1 AlternativeAttributeValidationStepHandler (org.wildfly.extension.picketlink.common.model.validator.AlternativeAttributeValidationStepHandler)1 UniqueTypeValidationStepHandler (org.wildfly.extension.picketlink.common.model.validator.UniqueTypeValidationStepHandler)1 EntityProviderService (org.wildfly.extension.picketlink.federation.service.EntityProviderService)1