bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject AW: svn commit: r926561 - in /incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303: resolver/DefaultTraversableResolver.java xml/ValidationParser.java
Date Tue, 23 Mar 2010 13:52:09 GMT
welcome on board roman ;)

And thanks for contributing bval!

LieGrue,
strub

--- romanstumm@apache.org <romanstumm@apache.org> schrieb am Di, 23.3.2010:

> Von: romanstumm@apache.org <romanstumm@apache.org>
> Betreff: svn commit: r926561 - in /incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303:
resolver/DefaultTraversableResolver.java xml/ValidationParser.java
> An: bval-commits@incubator.apache.org
> Datum: Dienstag, 23. März, 2010 14:14 Uhr
> Author: romanstumm
> Date: Tue Mar 23 13:14:10 2010
> New Revision: 926561
> 
> URL: http://svn.apache.org/viewvc?rev=926561&view=rev
> Log:
> merged logging
> 
> Modified:
>    
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/resolver/DefaultTraversableResolver.java
>    
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/xml/ValidationParser.java
> 
> Modified:
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/resolver/DefaultTraversableResolver.java
> URL: http://svn.apache.org/viewvc/incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/resolver/DefaultTraversableResolver.java?rev=926561&r1=926560&r2=926561&view=diff
> ==============================================================================
> ---
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/resolver/DefaultTraversableResolver.java
> (original)
> +++
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/resolver/DefaultTraversableResolver.java
> Tue Mar 23 13:14:10 2010
> @@ -5,9 +5,9 @@
>   * licenses this file to you under the Apache
> License, Version 2.0 (the
>   * "License"); you may not use this file except in
> compliance with the License.
>   * You may obtain a copy of the License at
> - * 
> + *
>   * http://www.apache.org/licenses/LICENSE-2.0
> - * 
> + *
>   * Unless required by applicable law or agreed to in
> writing, software
>   * distributed under the License is distributed on an
> "AS IS" BASIS, WITHOUT
>   * WARRANTIES OR CONDITIONS OF ANY KIND, either
> express or implied. See the
> @@ -64,9 +64,11 @@ public class DefaultTraversableResolver
> 
>      private void initJpa() {
>          try {
>          
>    ClassUtils.getClass(PERSISTENCE_UTIL_CLASSNAME);
> -            log.debug("Found
> " + PERSISTENCE_UTIL_CLASSNAME + " on classpath.");
> +            if
> (log.isDebugEnabled())
> +               
> log.debug("Found " + PERSISTENCE_UTIL_CLASSNAME + " on
> classpath.");
>          } catch (Exception
> e) {
> -           
> log.debug("Cannot find " + PERSISTENCE_UTIL_CLASSNAME +
> +            if
> (log.isDebugEnabled())
> +               
> log.debug("Cannot find " + PERSISTENCE_UTIL_CLASSNAME +
>                
>    " on classpath. All properties will per
> default be traversable.");
>          
>    return;
>          }
> @@ -76,8 +78,9 @@ public class DefaultTraversableResolver 
>                
>    (Class<? extends
> TraversableResolver>) ClassUtils
>                
>      
>    .getClass(JPA_AWARE_TRAVERSABLE_RESOLVER_CLASSNAME);
>              jpaTR
> = SecureActions.newInstance(jpaAwareResolverClass);
> -           
> log.info("Instantiated an instance of " +
> -               
>   JPA_AWARE_TRAVERSABLE_RESOLVER_CLASSNAME + ".");
> +            if
> (log.isDebugEnabled())
> +               
> log.debug("Instantiated an instance of " +
> +               
>     JPA_AWARE_TRAVERSABLE_RESOLVER_CLASSNAME +
> ".");
>          } catch (Exception
> e) {
>          
>    log.warn("Unable to load or instanciate
> JPA aware resolver " +
>                
>    JPA_AWARE_TRAVERSABLE_RESOLVER_CLASSNAME
> +
> 
> Modified:
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/xml/ValidationParser.java
> URL: http://svn.apache.org/viewvc/incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/xml/ValidationParser.java?rev=926561&r1=926560&r2=926561&view=diff
> ==============================================================================
> ---
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/xml/ValidationParser.java
> (original)
> +++
> incubator/bval/trunk/agimatec-jsr303/src/main/java/com/agimatec/validation/jsr303/xml/ValidationParser.java
> Tue Mar 23 13:14:10 2010
> @@ -81,7 +81,7 @@ public class ValidationParser {
>              
>    return null;
>              }
>  
> -            if
> (log.isInfoEnabled()) log.info(validationXmlFile + "
> found.");
> +            if
> (log.isDebugEnabled()) log.debug(validationXmlFile + "
> found.");
>  
>              Schema
> schema = getSchema();
>          
>    JAXBContext jc =
> JAXBContext.newInstance(ValidationConfigType.class);
> @@ -203,8 +203,8 @@ public class ValidationParser {
>      private void
> applyMappingStreams(ValidationConfigType xmlConfig,
>                
>                
>       ConfigurationImpl target) {
>          for
> (JAXBElement<String> mappingFileName :
> xmlConfig.getConstraintMapping()) {
> -            if
> (log.isInfoEnabled()) {
> -               
> log.info(
> +            if
> (log.isDebugEnabled()) {
> +               
> log.debug(
>                
>        "Trying to open input stream
> for " + mappingFileName.getValue());
>              }
>          
>    InputStream in;
> 
> 
> 

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.

http://mail.yahoo.com 

Mime
View raw message