14
14
* limitations under the License.
15
15
*/
16
16
17
- package org .jboss .shamrock .beanvalidation ;
17
+ package org .jboss .shamrock .hibernate . validator ;
18
18
19
19
import static org .jboss .shamrock .deployment .annotations .ExecutionTime .STATIC_INIT ;
20
20
36
36
import org .jboss .jandex .DotName ;
37
37
import org .jboss .jandex .IndexView ;
38
38
import org .jboss .jandex .Type ;
39
+ import org .jboss .shamrock .arc .deployment .AdditionalBeanBuildItem ;
40
+ import org .jboss .shamrock .arc .deployment .AnnotationsTransformerBuildItem ;
39
41
import org .jboss .shamrock .deployment .annotations .BuildProducer ;
40
42
import org .jboss .shamrock .deployment .annotations .BuildStep ;
41
43
import org .jboss .shamrock .deployment .annotations .Record ;
42
- import org .jboss .shamrock .arc .deployment .AdditionalBeanBuildItem ;
43
- import org .jboss .shamrock .arc .deployment .AnnotationsTransformerBuildItem ;
44
- import org .jboss .shamrock .beanvalidation .runtime .ValidatorProvider ;
45
- import org .jboss .shamrock .beanvalidation .runtime .ValidatorTemplate ;
46
- import org .jboss .shamrock .beanvalidation .runtime .interceptor .MethodValidationInterceptor ;
47
44
import org .jboss .shamrock .deployment .builditem .CombinedIndexBuildItem ;
48
45
import org .jboss .shamrock .deployment .builditem .FeatureBuildItem ;
49
46
import org .jboss .shamrock .deployment .builditem .HotDeploymentConfigFileBuildItem ;
50
47
import org .jboss .shamrock .deployment .builditem .substrate .ReflectiveFieldBuildItem ;
51
48
import org .jboss .shamrock .deployment .builditem .substrate .ReflectiveMethodBuildItem ;
52
49
import org .jboss .shamrock .deployment .builditem .substrate .SubstrateConfigBuildItem ;
53
50
import org .jboss .shamrock .deployment .recording .RecorderContext ;
51
+ import org .jboss .shamrock .hibernate .validator .runtime .HibernateValidatorTemplate ;
52
+ import org .jboss .shamrock .hibernate .validator .runtime .ValidatorProvider ;
53
+ import org .jboss .shamrock .hibernate .validator .runtime .interceptor .MethodValidationInterceptor ;
54
54
55
- class BeanValidationProcessor {
55
+ class HibernateValidatorProcessor {
56
56
57
57
private static final DotName VALIDATE_ON_EXECUTION = DotName .createSimple (ValidateOnExecution .class .getName ());
58
58
@@ -73,20 +73,20 @@ void registerAdditionalBeans(BuildProducer<AdditionalBeanBuildItem> additionalBe
73
73
74
74
if (isResteasyInClasspath ()) {
75
75
// The CDI interceptor which will validate the methods annotated with @JaxrsEndPointValidated
76
- additionalBeans .produce (new AdditionalBeanBuildItem ("org.jboss.shamrock.beanvalidation .runtime.jaxrs.JaxrsEndPointValidationInterceptor" ));
76
+ additionalBeans .produce (new AdditionalBeanBuildItem ("org.jboss.shamrock.hibernate.validator .runtime.jaxrs.JaxrsEndPointValidationInterceptor" ));
77
77
}
78
78
}
79
79
80
80
@ BuildStep
81
81
@ Record (STATIC_INIT )
82
- public void build (ValidatorTemplate template , RecorderContext recorder ,
82
+ public void build (HibernateValidatorTemplate template , RecorderContext recorder ,
83
83
BuildProducer <ReflectiveFieldBuildItem > reflectiveFields ,
84
84
BuildProducer <ReflectiveMethodBuildItem > reflectiveMethods ,
85
85
BuildProducer <AnnotationsTransformerBuildItem > annotationsTransformers ,
86
86
CombinedIndexBuildItem combinedIndexBuildItem ,
87
87
BuildProducer <FeatureBuildItem > feature ) throws Exception {
88
88
89
- feature .produce (new FeatureBuildItem (FeatureBuildItem .BEAN_VALIDATION ));
89
+ feature .produce (new FeatureBuildItem (FeatureBuildItem .HIBERNATE_VALIDATOR ));
90
90
91
91
IndexView indexView = combinedIndexBuildItem .getIndex ();
92
92
0 commit comments