Skip to content

Commit

Permalink
Merge pull request wildfly#17582 from pferraro/WFLY-18990
Browse files Browse the repository at this point in the history
WFLY-18990 Remove illegal uses of Operation.hasOptionalCapability(String, null, null) in JSF subsystem
  • Loading branch information
pferraro authored Feb 14, 2024
2 parents 9e5f1dc + e8368bd commit 40c4e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class JSFResourceDefinition extends PersistentResourceDefinition {
public static final String DEFAULT_SLOT_ATTR_NAME = "default-jsf-impl-slot";
public static final String DISALLOW_DOCTYPE_DECL_ATTR_NAME = "disallow-doctype-decl";
public static final String DEFAULT_SLOT = "main";
private static final RuntimeCapability<Void> FACES_CAPABILITY = RuntimeCapability.Builder.of("org.wildfly.faces")
static final RuntimeCapability<Void> FACES_CAPABILITY = RuntimeCapability.Builder.of("org.wildfly.faces")
.addRequirements(Capabilities.WELD_CAPABILITY_NAME)
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_JSF_MANAGED_BEANS, new JSFComponentProcessor());

processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_JSF_ANNOTATIONS, new JSFAnnotationProcessor());
if (context.hasOptionalCapability("org.wildfly.bean-validation", null, null)) {
if (context.hasOptionalCapability("org.wildfly.bean-validation", JSFResourceDefinition.FACES_CAPABILITY.getName(), null)) {
processorTarget.addDeploymentProcessor(JSFExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_JSF_VALIDATOR_FACTORY, new JSFBeanValidationFactoryProcessor());
}
}
Expand Down

0 comments on commit 40c4e5f

Please sign in to comment.