org.hibersap.validation
Class BeanValidationActivator

java.lang.Object
  extended by 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.


Constructor Summary
BeanValidationActivator()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanValidationActivator

public BeanValidationActivator()
Method Detail

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.