@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // if the calling process has already acquired a lock, don't relock. if (lock) { context.acquireControllerLock(); } final Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry; final Resource resource = context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS); // The host info is only null in the tests if (hostInfo == null) { ignoredTransformationRegistry = Transformers.DEFAULT; } else { final ReadMasterDomainModelUtil.RequiredConfigurationHolder rc = hostInfo.populateRequiredConfigurationHolder(resource, extensionRegistry); ignoredTransformationRegistry = ReadMasterDomainModelUtil.createHostIgnoredRegistry(hostInfo, rc); } final OperationStepHandler handler = new ReadDomainModelHandler(ignoredTransformationRegistry, transformers, lock); context.addStep(handler, OperationContext.Stage.MODEL); }
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { // if the calling process has already acquired a lock, don't relock. if (lock) { context.acquireControllerLock(); } final Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry; final Resource resource = context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS); // The host info is only null in the tests if (hostInfo == null) { ignoredTransformationRegistry = Transformers.DEFAULT; } else { final ReadMasterDomainModelUtil.RequiredConfigurationHolder rc = hostInfo.populateRequiredConfigurationHolder(resource, extensionRegistry); ignoredTransformationRegistry = ReadMasterDomainModelUtil.createHostIgnoredRegistry(hostInfo, rc); } final OperationStepHandler handler = new ReadDomainModelHandler(ignoredTransformationRegistry, transformers, lock); context.addStep(handler, OperationContext.Stage.MODEL); }