The Bean Validation 1.0 specification provides an annotation based model for validating JavaBeans. It can be used to assert and maintain the integrity of data as it travels through an application.
Enabling this feature
To enable the Bean Validation 1.0 feature, add the following element declaration into your server.xml
file, inside the featureManager
element:
<feature>beanValidation-1.0</feature>
Feature configuration elements
Standard API packages provided by this feature
-
javax.validation
-
javax.validation.bootstrap
-
javax.validation.constraints
-
javax.validation.groups
-
javax.validation.metadata
-
javax.validation.spi
Supported Java versions
-
JavaSE-1.8
-
JavaSE-11.0
-
JavaSE-17.0
-
JavaSE-20.0
Features that enable this feature
Developing a feature that depends on this feature
If you are developing a feature that depends on this feature, include the following item in the Subsystem-Content
header in your feature manifest file.
com.ibm.websphere.appserver.beanValidation-1.0; type="osgi.subsystem.feature"