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

                    catch (ClassNotFoundException e)
                    {
                        Log log = LogFactory.getLog(ExtendedDefaultResourceHandlerSupport.class);
                        if (log.isTraceEnabled())
                        {
                            log.trace("cannot load servlet class to detect if is a FacesServlet or DelegateFacesServlet", e);
                        }
                    }
                }
            }
            if (facesServlet)
View Full Code Here

        for (String permString : newPermissionStrings) {
            Permission p = Enum.valueOf(Permission.class, permString);
            role.addPermission(p);
        }

        log.trace("creating role [" + role.getName() + "] with attributes " + newForm);

        try {
            RoleManagerLocal roleManager = LookupUtil.getRoleManager();
            role = roleManager.createRole(RequestUtils.getSubject(request), role);
        } catch (Exception ex) {
View Full Code Here

            log.debug("role creation failed:", ex);
            RequestUtils.setError(request, Constants.ERR_ROLE_CREATION);
            return returnFailure(request, mapping);
        }

        log.trace("new role id: [" + role.getId() + "]");

        RequestUtils.setConfirmation(request, "admin.role.confirm.Create", role.getName());
        return returnNew(request, mapping, Constants.ROLE_PARAM, role.getId());
    }
}
View Full Code Here

         * to list" widget- awaiting association with the rolewhen the form's "ok" button is clicked. */
        Integer[] pendingGroupIds = SessionUtils.getList(request.getSession(), Constants.PENDING_RESGRPS_SES_ATTR);

        ResourceGroupManagerLocal groupManager = LookupUtil.getResourceGroupManager();

        log.trace("getting pending groups for role [" + roleId + ")");
        PageList<ResourceGroup> pendingGroups = groupManager.findResourceGroupByIds(whoami, ArrayUtils
            .unwrapArray(pendingGroupIds), pcp);

        request.setAttribute(Constants.PENDING_RESGRPS_ATTR, pendingGroups);
        request.setAttribute(Constants.NUM_PENDING_RESGRPS_ATTR, new Integer(pendingGroups.getTotalSize()));
View Full Code Here

        request.setAttribute(Constants.NUM_PENDING_RESGRPS_ATTR, new Integer(pendingGroups.getTotalSize()));

        /* available groups are all groups in the system that are not
         * associated with the role and are not pending
         */
        log.trace("getting available groups for role [" + roleId + "]");
        PageList<ResourceGroup> availableGroups = groupManager.findAvailableResourceGroupsForRole(whoami, roleId,
            ArrayUtils.unwrapArray(pendingGroupIds), pca);

        request.setAttribute(Constants.AVAIL_RESGRPS_ATTR, availableGroups);
        request.setAttribute(Constants.NUM_AVAIL_RESGRPS_ATTR, new Integer(availableGroups.getTotalSize()));
View Full Code Here

        if (forward != null) {
            BaseValidatorForm spiderForm = (BaseValidatorForm) form;

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.trace("removing pending roles list");
                SessionUtils.removeList(session, Constants.PENDING_ROLES_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending roles list");
                SessionUtils.addToList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getAvailableRoles());
            } else if (spiderForm.isRemoveClicked()) {
View Full Code Here

            if (spiderForm.isCancelClicked() || spiderForm.isResetClicked()) {
                log.trace("removing pending roles list");
                SessionUtils.removeList(session, Constants.PENDING_ROLES_SES_ATTR);
            } else if (spiderForm.isAddClicked()) {
                log.trace("adding to pending roles list");
                SessionUtils.addToList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getAvailableRoles());
            } else if (spiderForm.isRemoveClicked()) {
                log.trace("removing from pending roles list");
                SessionUtils.removeFromList(session, Constants.PENDING_ROLES_SES_ATTR, addForm.getPendingRoles());
            }
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.