Class BeanValidationFactoryDeployer

java.lang.Object
org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class BeanValidationFactoryDeployer extends Object implements org.jboss.as.server.deployment.DeploymentUnitProcessor
Creates a Jakarta Bean Validation factory and adds it to the deployment and binds it to JNDI.

We use a lazy wrapper around the ValidatorFactory to stop it being initialized until it is used. TODO: it would be neat if hibernate validator could make use of our annotation scanning etc

Author:
Stuart Douglas
  • Constructor Details

    • BeanValidationFactoryDeployer

      public BeanValidationFactoryDeployer()
  • 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
    • undeploy

      public void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
      Specified by:
      undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor