Code example for Logger

Methods: finest

0
        property = Character.toUpperCase(property.charAt(0)) + property.substring(1);
        Method method = null;
        try { 
            String methodName = "get" + property;
            method = clazz.getMethod(methodName);
            log.finest("Found [" + methodName + "]");
        } catch (NoSuchMethodException e) {
            try { 
                String methodName = "is" + property;
                method = clazz.getMethod(methodName);
                log.finest("Found [" + methodName + "]");
            } catch (NoSuchMethodException e2) {
                throw new RuntimeException("Property " + property + " not found in " + clazz.getName());
            } 
        } 
        try { 
            Object o = method.invoke(target, new Object[0]);
            log.finest("Returniong [" + o + "]");
            return o;
        } catch (Exception e) {
            throw new RuntimeException("Error getting property " + property + " from " + clazz.getName(), e);
        }