congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Log.getMoreThanOneValidatorFoundForTypeException
Code IndexAdd Tabnine to your IDE (free)

How to use
getMoreThanOneValidatorFoundForTypeException
method
in
org.hibernate.validator.internal.util.logging.Log

Best Java code snippets using org.hibernate.validator.internal.util.logging.Log.getMoreThanOneValidatorFoundForTypeException (Showing top 2 results out of 315)

origin: org.hibernate.validator/hibernate-validator

/**
 * Runs the validator resolution algorithm.
 *
 * @param validatedValueType The type of the value to be validated (the type of the member/class the constraint was placed on).
 *
 * @return The class of a matching validator.
 */
private <A extends Annotation> ConstraintValidatorDescriptor<A> findMatchingValidatorDescriptor(ConstraintDescriptorImpl<A> descriptor, Type validatedValueType) {
  Map<Type, ConstraintValidatorDescriptor<A>> availableValidatorDescriptors = TypeHelper.getValidatorTypes(
      descriptor.getAnnotationType(),
      descriptor.getMatchingConstraintValidatorDescriptors()
  );
  List<Type> discoveredSuitableTypes = findSuitableValidatorTypes( validatedValueType, availableValidatorDescriptors.keySet() );
  resolveAssignableTypes( discoveredSuitableTypes );
  if ( discoveredSuitableTypes.size() == 0 ) {
    return null;
  }
  if ( discoveredSuitableTypes.size() > 1 ) {
    throw LOG.getMoreThanOneValidatorFoundForTypeException( validatedValueType, discoveredSuitableTypes );
  }
  Type suitableType = discoveredSuitableTypes.get( 0 );
  return availableValidatorDescriptors.get( suitableType );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

/**
 * Runs the validator resolution algorithm.
 *
 * @param validatedValueType The type of the value to be validated (the type of the member/class the constraint was placed on).
 *
 * @return The class of a matching validator.
 */
private <A extends Annotation> Class<? extends ConstraintValidator<A, ?>> findMatchingValidatorClass(ConstraintDescriptorImpl<A> descriptor, Type validatedValueType) {
  Map<Type, Class<? extends ConstraintValidator<A, ?>>> availableValidatorTypes = TypeHelper.getValidatorsTypes(
      descriptor.getAnnotationType(),
      descriptor.getMatchingConstraintValidatorClasses()
  );
  List<Type> discoveredSuitableTypes = findSuitableValidatorTypes( validatedValueType, availableValidatorTypes );
  resolveAssignableTypes( discoveredSuitableTypes );
  if ( discoveredSuitableTypes.size() == 0 ) {
    return null;
  }
  if ( discoveredSuitableTypes.size() > 1 ) {
    throw LOG.getMoreThanOneValidatorFoundForTypeException( validatedValueType, discoveredSuitableTypes );
  }
  Type suitableType = discoveredSuitableTypes.get( 0 );
  return availableValidatorTypes.get( suitableType );
}
org.hibernate.validator.internal.util.loggingLoggetMoreThanOneValidatorFoundForTypeException

Popular methods of Log

  • getInvalidRegularExpressionException
  • getInvalidLengthForFractionPartException
  • getInvalidLengthForIntegerPartException
  • getLengthCannotBeNegativeException
  • getMaxCannotBeNegativeException
  • getMinCannotBeNegativeException
  • debug
  • debugf
  • errorInExpressionLanguage
  • evaluatingExpressionLanguageExpressionCausedException
  • getAnnotationDoesNotContainAParameterException
  • getAtLeastOneCustomMessageMustBeCreatedException
  • getAnnotationDoesNotContainAParameterException,
  • getAtLeastOneCustomMessageMustBeCreatedException,
  • getAtLeastOneGroupHasToBeSpecifiedException,
  • getAttemptToSpecifyAnArrayWhereSingleValueIsExpectedException,
  • getBeanClassHasAlreadyBeConfiguredViaProgrammaticApiException,
  • getBeanClassMustBePartOfRedefinedDefaultGroupSequenceException,
  • getBeanDoesNotContainConstructorException,
  • getBeanDoesNotContainMethodException,
  • getBeanDoesNotContainTheFieldException,
  • getBeanDoesNotContainThePropertyException

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now