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);
}
Aggregations