Class WebComponentProcessor

java.lang.Object
org.wildfly.extension.undertow.deployment.WebComponentProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class WebComponentProcessor extends Object implements org.jboss.as.server.deployment.DeploymentUnitProcessor
Processor that figures out what type of component a servlet/listener is, and registers the appropriate metadata. The different types are:
  • Managed Bean - If the servlet is annotated with the ManagedBean annotation
  • Jakarta Contexts and Dependency Injection Bean - If the servlet is deployed in a bean archive
  • EE Component - If this is an EE deployment and the servlet is not one of the above
  • Normal Servlet - If the EE subsystem is disabled

For ManagedBean Servlets no action is necessary at this stage, as the servlet is already registered as a component. For Jakarta Contexts and Dependency Injection and EE components a component definition is added to the deployment.

For now we are just using managed bean components as servlets. We may need a custom component type in the future.

  • Constructor Details

    • WebComponentProcessor

      public WebComponentProcessor()
  • Method Details

    • deploy

      public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
      Specified by:
      deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException