org.hibersap.validation
Class BeanValidationActivator
java.lang.Object
org.hibersap.validation.BeanValidationActivator
public class BeanValidationActivator
- extends Object
Acts as a middle-man between Hibersap and the Bean Validation framework.
Hibersap applications should not be forced to have the Bean Validation API library on the classpath
if they don't use Bean Validation at all. Therefore, this class has no direct dependency to the
javax.validation package.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanValidationActivator
public BeanValidationActivator()
activateBeanValidation
public static void activateBeanValidation(Set<BapiInterceptor> bapiInterceptors,
SessionManagerConfig sessionManagerConfig)
- If Bean Validation should be used, as specified in the Hibersap SessionManagerConfig,
the TypeSafeActivator class is used to create the ValidationFactory.
This class has no direct dependency on javax.validation, so Hibersap applications are not forced to
have any Bean Validation API or implementation libraries on their classpath.
- Parameters:
bapiInterceptors
- The BeanValidationInterceptor will be added here if Bean Validation will be used.sessionManagerConfig
- Provides the configuration information to decide if Bean Validation shall be used.
Copyright © 2012 akquinet tech@spree GmbH. All Rights Reserved.