@Override public final <T> T unwrap(Class<T> type) { //allow unwrapping into public super types; intentionally not exposing the //fact that ExecutableValidator is implemented by this class as well as this //might change if ( type.isAssignableFrom( Validator.class ) ) { return type.cast( this ); } throw LOG.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateValidatorFactory.class ) ) { return type.cast( this ); } throw log.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateMessageInterpolatorContext.class ) ) { return type.cast( this ); } throw log.getTypeNotSupportedForUnwrappingException( type ); }
@Override public final <T> T unwrap(Class<T> type) { //allow unwrapping into public super types; intentionally not exposing the //fact that ExecutableValidator is implemented by this class as well as this //might change if ( type.isAssignableFrom( Validator.class ) ) { return type.cast( this ); } throw log.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateConstraintValidatorContext.class ) ) { return type.cast( this ); } throw log.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateConstraintValidatorContext.class ) ) { return type.cast( this ); } throw LOG.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateMessageInterpolatorContext.class ) ) { return type.cast( this ); } throw LOG.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <T> T unwrap(Class<T> type) { //allow unwrapping into public super types if ( type.isAssignableFrom( HibernateValidatorFactory.class ) ) { return type.cast( this ); } throw LOG.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <C> C unwrap(Class<C> type) { // Keep backward compatibility if ( type.isAssignableFrom( ConstraintViolation.class ) ) { return type.cast( this ); } if ( type.isAssignableFrom( HibernateConstraintViolation.class ) ) { return type.cast( this ); } throw LOG.getTypeNotSupportedForUnwrappingException( type ); }
@Override public <C> C unwrap(Class<C> type) { // Keep backward compatibility if ( type.isAssignableFrom( ConstraintViolation.class ) ) { return type.cast( this ); } if ( type.isAssignableFrom( HibernateConstraintViolation.class ) ) { return type.cast( this ); } throw log.getTypeNotSupportedForUnwrappingException( type ); }