Tabnine Logo
Log.debugf
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.hibernate.validator/hibernate-validator

private InputStream getValidationXmlInputStream() {
  LOG.debugf( "Trying to load %s for XML based Validator configuration.", VALIDATION_XML_FILE );
  InputStream inputStream = ResourceLoaderHelper.getResettableInputStreamForPath( VALIDATION_XML_FILE, externalClassLoader );
  if ( inputStream != null ) {
    return inputStream;
  }
  else {
    LOG.debugf( "No %s found. Using annotation based configuration only.", VALIDATION_XML_FILE );
    return null;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private InputStream getValidationXmlInputStream() {
  log.debugf( "Trying to load %s for XML based Validator configuration.", VALIDATION_XML_FILE );
  InputStream inputStream = ResourceLoaderHelper.getResettableInputStreamForPath( VALIDATION_XML_FILE, externalClassLoader );
  if ( inputStream != null ) {
    return inputStream;
  }
  else {
    log.debugf( "No %s found. Using annotation based configuration only.", VALIDATION_XML_FILE );
    return null;
  }
}
origin: org.hibernate.validator/hibernate-validator

@Override
public boolean areClassLevelConstraintsIgnoredFor(Class<?> clazz) {
  boolean ignoreAnnotation;
  if ( annotationIgnoresForClasses.containsKey( clazz ) ) {
    ignoreAnnotation = annotationIgnoresForClasses.get( clazz );
  }
  else {
    ignoreAnnotation = areAllConstraintAnnotationsIgnoredFor( clazz );
  }
  if ( LOG.isDebugEnabled() && ignoreAnnotation ) {
    LOG.debugf( "Class level annotation are getting ignored for %s.", clazz.getName() );
  }
  return ignoreAnnotation;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

@Override
public boolean areClassLevelConstraintsIgnoredFor(Class<?> clazz) {
  boolean ignoreAnnotation;
  if ( annotationIgnoresForClasses.containsKey( clazz ) ) {
    ignoreAnnotation = annotationIgnoresForClasses.get( clazz );
  }
  else {
    ignoreAnnotation = areAllConstraintAnnotationsIgnoredFor( clazz );
  }
  if ( log.isDebugEnabled() && ignoreAnnotation ) {
    log.debugf( "Class level annotation are getting ignored for %s.", clazz.getName() );
  }
  return ignoreAnnotation;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private void setMappingStreams(Set<String> mappingFileNames, ClassLoader externalClassLoader) {
  for ( String mappingFileName : mappingFileNames ) {
    log.debugf( "Trying to open input stream for %s.", mappingFileName );
    InputStream in = ResourceLoaderHelper.getResettableInputStreamForPath( mappingFileName, externalClassLoader );
    if ( in == null ) {
      throw log.getUnableToOpenInputStreamForMappingFileException( mappingFileName );
    }
    mappings.add( in );
  }
}
origin: org.hibernate.validator/hibernate-validator

private void setMappingStreams(Set<String> mappingFileNames, ClassLoader externalClassLoader) {
  for ( String mappingFileName : mappingFileNames ) {
    LOG.debugf( "Trying to open input stream for %s.", mappingFileName );
    InputStream in = ResourceLoaderHelper.getResettableInputStreamForPath( mappingFileName, externalClassLoader );
    if ( in == null ) {
      throw LOG.getUnableToOpenInputStreamForMappingFileException( mappingFileName );
    }
    mappings.add( in );
  }
}
origin: org.hibernate.validator/hibernate-validator

@Override
protected void add(XMLEventReader xmlEventReader, XMLEvent xmlEvent) throws XMLStreamException {
  StartElement startElement = xmlEvent.asStartElement();
  String name = readAttribute( startElement, NAME_QNAME ).get();
  String value = readSingleElement( xmlEventReader );
  if ( LOG.isDebugEnabled() ) {
    LOG.debugf(
        "Found property '%s' with value '%s' in validation.xml.",
        name,
        value
    );
  }
  properties.put( name, value );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private CompositionType parseCompositionType(ConstraintHelper constraintHelper) {
  for ( Annotation declaredAnnotation : annotationType.getDeclaredAnnotations() ) {
    Class<? extends Annotation> declaredAnnotationType = declaredAnnotation.annotationType();
    if ( NON_COMPOSING_CONSTRAINT_ANNOTATIONS.contains( declaredAnnotationType.getName() ) ) {
      // ignore the usual suspects which will be in almost any constraint, but are no composing constraint
      continue;
    }
    if ( constraintHelper.isConstraintComposition( declaredAnnotationType ) ) {
      if ( log.isDebugEnabled() ) {
        log.debugf( "Adding Bool %s.", declaredAnnotationType.getName() );
      }
      return ( (ConstraintComposition) declaredAnnotation ).value();
    }
  }
  return CompositionType.AND;
}
origin: org.hibernate.validator/hibernate-validator

private CompositionType parseCompositionType(ConstraintHelper constraintHelper) {
  for ( Annotation declaredAnnotation : annotationDescriptor.getType().getDeclaredAnnotations() ) {
    Class<? extends Annotation> declaredAnnotationType = declaredAnnotation.annotationType();
    if ( NON_COMPOSING_CONSTRAINT_ANNOTATIONS.contains( declaredAnnotationType.getName() ) ) {
      // ignore the usual suspects which will be in almost any constraint, but are no composing constraint
      continue;
    }
    if ( constraintHelper.isConstraintComposition( declaredAnnotationType ) ) {
      if ( LOG.isDebugEnabled() ) {
        LOG.debugf( "Adding Bool %s.", declaredAnnotationType.getName() );
      }
      return ( (ConstraintComposition) declaredAnnotation ).value();
    }
  }
  return CompositionType.AND;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

  log.debugf(
      "Cannot find %s on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME
  log.debugf(
      "Found %s on classpath, but no method '%s'. Assuming JPA 1 environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME,
  log.debugf(
      "Unable to invoke %s.%s. Inconsistent JPA environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME,
log.debugf(
    "Found %s on classpath containing '%s'. Assuming JPA 2 environment. Trying to instantiate JPA aware TraversableResolver",
    PERSISTENCE_CLASS_NAME,
      run( LoadClass.action( JPA_AWARE_TRAVERSABLE_RESOLVER_CLASS_NAME, this.getClass().getClassLoader() ) );
  jpaTraversableResolver = run( NewInstance.action( jpaAwareResolverClass, "" ) );
  log.debugf(
      "Instantiated JPA aware TraversableResolver of type %s.", JPA_AWARE_TRAVERSABLE_RESOLVER_CLASS_NAME
  );
  log.debugf(
      "Unable to load or instantiate JPA aware resolver %s. All properties will per default be traversable.",
      JPA_AWARE_TRAVERSABLE_RESOLVER_CLASS_NAME
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

);
composingConstraintsSet.add( descriptor );
log.debugf( "Adding composing constraint: %s.", descriptor );
  );
  composingConstraintsSet.add( descriptor );
  log.debugf( "Adding composing constraint: %s.", descriptor );
  index++;
origin: org.hibernate.validator/hibernate-validator

composingConstraintsSet.add( descriptor );
composingConstraintLocations.put( declaredAnnotationType, ComposingConstraintAnnotationLocation.DIRECT );
LOG.debugf( "Adding composing constraint: %s.", descriptor );
  composingConstraintsSet.add( descriptor );
  composingConstraintLocations.put( constraintAnnotation.annotationType(), ComposingConstraintAnnotationLocation.IN_CONTAINER );
  LOG.debugf( "Adding composing constraint: %s.", descriptor );
  index++;
origin: org.hibernate.validator/hibernate-validator

  LOG.debugf(
      "Cannot find %s on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME
  LOG.debugf(
      "Found %s on classpath, but no method '%s'. Assuming JPA 1 environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME,
  LOG.debugf(
      "Unable to invoke %s.%s. Inconsistent JPA environment. All properties will per default be traversable.",
      PERSISTENCE_CLASS_NAME,
LOG.debugf(
    "Found %s on classpath containing '%s'. Assuming JPA 2 environment. Trying to instantiate JPA aware TraversableResolver",
    PERSISTENCE_CLASS_NAME,
  Class<? extends TraversableResolver> jpaAwareResolverClass = (Class<? extends TraversableResolver>)
      run( LoadClass.action( JPA_AWARE_TRAVERSABLE_RESOLVER_CLASS_NAME, TraversableResolvers.class.getClassLoader() ) );
  LOG.debugf(
      "Instantiated JPA aware TraversableResolver of type %s.", JPA_AWARE_TRAVERSABLE_RESOLVER_CLASS_NAME
  );
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator

private BootstrapConfiguration createBootstrapConfiguration(ValidationConfigType config) {
  Map<String, String> properties = new HashMap<String, String>();
  for ( PropertyType property : config.getProperty() ) {
    if ( log.isDebugEnabled() ) {
      log.debugf(
          "Found property '%s' with value '%s' in validation.xml.",
          property.getName(),
          property.getValue()
      );
    }
    properties.put( property.getName(), property.getValue() );
  }
  ExecutableValidationType executableValidationType = config.getExecutableValidation();
  EnumSet<ExecutableType> defaultValidatedExecutableTypes = executableValidationType == null
      ? getValidatedExecutableTypes( null )
      : getValidatedExecutableTypes( executableValidationType.getDefaultValidatedExecutableTypes() );
  boolean executableValidationEnabled = executableValidationType == null || executableValidationType.getEnabled();
  return new BootstrapConfigurationImpl(
      config.getDefaultProvider(),
      config.getConstraintValidatorFactory(),
      config.getMessageInterpolator(),
      config.getTraversableResolver(),
      config.getParameterNameProvider(),
      defaultValidatedExecutableTypes,
      executableValidationEnabled,
      new HashSet<String>( config.getConstraintMapping() ),
      properties
  );
}
org.hibernate.validator.internal.util.loggingLogdebugf

Popular methods of Log

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

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top PhpStorm plugins
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