Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.trace()


                    if (match) {
                        // get accessible version of method
                        Method method = getAccessibleMethod(clazz, methods[i]);
                        if (method != null) {
                            if (log.isTraceEnabled()) {
                                log.trace(method + " accessible version of "
                                            + methods[i]);
                            }
                            setMethodAccessible(method); // Default access superclass workaround
                            myCost = getTotalTransformationCost(parameterTypes,method.getParameterTypes());
                            if ( myCost < bestMatchCost ) {
View Full Code Here


                               bestMatch = method;
                               bestMatchCost = myCost;
                            }
                        }
                       
                        log.trace("Couldn't find accessible method.");
                    }
                }
            }
        }
        if ( bestMatch != null ){
View Full Code Here

        }
        if ( bestMatch != null ){
                 cacheMethod(md, bestMatch);
        } else {
        // didn't find a match
               log.trace("No match found.");
        }
       
        return bestMatch;                                       
    }
View Full Code Here

    public Type trace(String category) {
        final Log log = LogFactory.getLog(category);
        return intercept(new DelegateProcessor() {
            @Override
            public void process(Exchange exchange) throws Exception {
                log.trace(exchange);
                processNext(exchange);
            }
        });
    }
View Full Code Here

         }
         catch (Exception e)
         {
            // do nothing
            Log l = LogFactory.getLog(EvictionConfig.class);
            if (l.isTraceEnabled()) l.trace(e);
         }
      }
      if (throwException)
         throw new UnsupportedEvictionImplException("Unsupported custom eviction policy [" + evictionPolicyClass +
               "]. Starting with 3.x the eviction API has changed, the code needs to be manually migrated.  Please re-implement your custom policy.");
View Full Code Here

     * @return a correctly configured <code>NodeDescriptor</code> for the property
     */
    public Descriptor createXMLDescriptor( IntrospectionConfiguration configuration ) {
        Log log = configuration.getIntrospectionLog();
        if (log.isTraceEnabled()) {
            log.trace("Creating descriptor for property: name="
                + getPropertyName() + " type=" + getPropertyType());
        }
       
        NodeDescriptor descriptor = null;
        Expression propertyExpression = getPropertyExpression();
View Full Code Here

        Expression propertyExpression = getPropertyExpression();
        Updater propertyUpdater = getPropertyUpdater();
       
        if ( propertyExpression == null ) {
            if (log.isTraceEnabled()) {
                log.trace( "No read method for property: name="
                    + getPropertyName() + " type=" + getPropertyType());
            }
            return null;
        }
       
View Full Code Here

            }
            return null;
        }
       
        if ( log.isTraceEnabled() ) {
            log.trace( "Property expression=" + propertyExpression );
        }
       
        // choose response from property type
       
        //TODO this big conditional should be replaced with subclasses based
View Full Code Here

                    propertyUpdater);
           
        } else if ( configuration.isLoopType( getPropertyType() ) ) {
           
            if (log.isTraceEnabled()) {
                log.trace("Loop type: " + getPropertyName());
                log.trace("Wrap in collections? " + configuration.isWrapCollectionsInElement());
            }
           
            if ( Map.class.isAssignableFrom( getPropertyType() )) {
                descriptor = createDescriptorForMap( configuration, propertyExpression );
View Full Code Here

           
        } else if ( configuration.isLoopType( getPropertyType() ) ) {
           
            if (log.isTraceEnabled()) {
                log.trace("Loop type: " + getPropertyName());
                log.trace("Wrap in collections? " + configuration.isWrapCollectionsInElement());
            }
           
            if ( Map.class.isAssignableFrom( getPropertyType() )) {
                descriptor = createDescriptorForMap( configuration, propertyExpression );
            } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.