Skip to content

Commit

Permalink
Merge pull request #5812 from bstansberry/WFCORE-5775
Browse files Browse the repository at this point in the history
[WFCORE-5775] Remove the org.wildfly.management.expression-resolver-e…
  • Loading branch information
yersan authored Jan 15, 2024
2 parents 837bbc1 + 73dfcc7 commit 629f0ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
import org.jboss.as.controller.client.OperationResponse;
import org.jboss.as.controller.client.impl.AdditionalBootCliScriptInvoker;
import org.jboss.as.controller.descriptions.DescriptionProvider;
import org.jboss.as.controller.extension.ExpressionResolverExtension;
import org.jboss.as.controller.extension.MutableRootResourceRegistrationProvider;
import org.jboss.as.controller.extension.ResolverExtensionRegistry;
import org.jboss.as.controller.logging.ControllerLogger;
import org.jboss.as.controller.notification.NotificationHandlerRegistry;
import org.jboss.as.controller.notification.NotificationSupport;
Expand Down Expand Up @@ -162,13 +160,6 @@ private static int getBootStackSize() {
RuntimeCapability.Builder.of("org.wildfly.management.process-state-notifier", ProcessStateNotifier.class)
.build();

/**
* Name of a capability that extensions that provide {@link ExpressionResolverExtension} implementations
* can use to register their extensions with the core {@link ExpressionResolver}.
*/
private static final String EXPRESSION_RESOLVER_EXTENSION_REGISTRY_CAPABILITY_NAME =
"org.wildfly.management.expression-resolver-extension-registry";

private static final OperationDefinition INIT_CONTROLLER_OP = new SimpleOperationDefinitionBuilder("boottime-controller-initializer-step", null)
.setPrivateEntry()
.build();
Expand All @@ -190,7 +181,6 @@ private static int getBootStackSize() {
private final BootErrorCollector bootErrorCollector;
private final CapabilityRegistry capabilityRegistry;
private final ConfigurationExtension configExtension;
private final RuntimeCapability<ResolverExtensionRegistry> extensionRegistryCapability;
private volatile ModelControllerClientFactory clientFactory;

/**
Expand Down Expand Up @@ -300,13 +290,6 @@ private AbstractControllerService(final Supplier<ExecutorService> executorServic
this.processState = processState;
this.prepareStep = prepareStep;
this.expressionResolver = expressionResolver;
if (expressionResolver instanceof ResolverExtensionRegistry) {
this.extensionRegistryCapability =
RuntimeCapability.Builder.of(EXPRESSION_RESOLVER_EXTENSION_REGISTRY_CAPABILITY_NAME,
(ResolverExtensionRegistry) expressionResolver).build();
} else {
this.extensionRegistryCapability = null;
}
this.auditLogger = auditLogger;
this.authorizer = authorizer;
this.securityIdentitySupplier = securityIdentitySupplier;
Expand Down Expand Up @@ -364,11 +347,6 @@ bootErrorCollector, createExtraValidationStepHandler(), capabilityRegistry, getP
notifyRegistrySB.setInstance(new SimpleService(notifyRegistrySB.provides(notifyRegistrySN), controller.getNotificationRegistry()));
notifyRegistrySB.install();
}
if (extensionRegistryCapability != null) {
capabilityRegistry.registerCapability(
new RuntimeCapabilityRegistration(extensionRegistryCapability, CapabilityScope.GLOBAL, new RegistrationPoint(PathAddress.EMPTY_ADDRESS, null)));
rootResourceRegistration.registerCapability(extensionRegistryCapability);
}
capabilityRegistry.publish(); // These are visible immediately; no waiting for finishBoot
// We publish even if we didn't register anything in case parent services did

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

/**
* Registry for {@link ExpressionResolverExtension extensions} to a server or host controller's {@link ExpressionResolver}.
* The registry will be available using the {@code org.wildfly.management.expression-resolver-extension-registry}
* capability.
*/
public interface ResolverExtensionRegistry {

Expand Down

0 comments on commit 629f0ec

Please sign in to comment.