@Override public List<String> getSelectedAttributes() { this.log.debug("get selectedAttributes: " + selectedAttributes.size()); return this.selectedAttributes; }
protected void error(Object object, Object... params) { log.error(object, params); }
protected void info(Object object, Throwable t, Object... params) { log.info(object, t, params); }
@Override public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { if (log.isDebugEnabled()) { log.debug("Converting string '#0' to date for clientId '#1' using Seam's built-in JSF date converter", value, component.getClientId(context)); } return super.getAsObject(context, component, value); }
/** * Creates a JExcelAPI number display format * * @param formatMask The format mask * @return The display format * @see <a * href="http://jexcelapi.sourceforge.net/resources/javadocs/2_6/docs/jxl/write/NumberFormat.html">NumberFormat</a> */ public static DisplayFormat createNumberFormat(String formatMask) { if (log.isTraceEnabled()) { log.trace("Creating number format for mask #0", formatMask); } try { return (DisplayFormat) getConstant(NUMBERFORMATS_CLASSNAME, formatMask); } catch (NoSuchFieldException e) { // Look! An empty catch block! But this one is documented. We are using // this to see if there is a constant // defines for this in the class return null; } }
@Override public void process() throws ServletException, IOException, LoginException { try { doFilter(httpRequest, httpResponse, service); } catch (InvalidRequestException e) { httpResponse.setStatus(HttpServletResponse.SC_BAD_REQUEST); if (log.isInfoEnabled()) { log.info("Bad request received from {0} ({1})", e.getCause(), httpRequest.getRemoteHost(), e .getDescription()); } } } }.run();
/** * {@inheritDoc} */ public String remove() { this.log.debug("remove administrator"); try { this.adminManager.remove(this.selectedAdmin); } catch (RemoveLastAdminException e) { this.log.error("cannot remove last administrator"); this.facesMessages.add(StatusMessage.Severity.ERROR, "Cannot remove the last administrator"); return null; } adminListFactory(); return "success"; } }
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) public void call() { log.info("the phone number to call is " + phoneNumber); String customerPhone = "sip:" + phoneNumber + "@" + (String)Contexts.getApplicationContext().get("caller.domain");; try { log.error("An unexpected exception occurred while trying to create the request for checkout confirmation", uoe); } catch (Exception e) { log.error("An unexpected exception occurred while trying to create the request for checkout confirmation", e);
"You cannot create a worksheet before creating a workbook"); if (log.isDebugEnabled()) { log .debug( "Creating worksheet named #0 starting at column #1 and row #2", uiWorksheet.getName(), if (log.isTraceEnabled()) { log.trace("Sheet found, selecting"); if (log.isTraceEnabled()) { log.trace("Sheet not found, creating");
protected void warn(Object object, Object... params) { log.warn(object, params); }
log.info("registering built-in RESTEasy providers"); RegisterBuiltin.register(getDispatcher().getProviderFactory()); log.debug("registering provider as RESTEasy StringConverter: {0}", providerClass); getDispatcher().getProviderFactory().addStringConverter((Class<? extends StringConverter>) providerClass); log.debug("registering provider as plain JAX-RS type: {0}", providerClass); getDispatcher().getProviderFactory().registerProvider(providerClass);
@Create public void create() { jbossMBeanServer = locateJBoss(); if (!isJBoss()) { return; } try { clusteringCacheObjectName = new ObjectName("jboss.cache:service=TomcatClusteringCache"); serverObjectName = new ObjectName("jboss.system:type=Server"); } catch (MalformedObjectNameException e) { log.warn("Invalid JMX name: " + e.getMessage()); } try { jbossMBeanServer.getMBeanInfo(clusteringCacheObjectName); clustered = true; log.info("JBoss cluster detected"); } catch (Exception e) {} }
private void addStyle(StringBuilder styleBuilder) { String styleString = styleBuilder.toString(); int keyValueBreakpointIndex = styleString.indexOf(KEY_VALUE_SEPARATOR); if (keyValueBreakpointIndex < 0) { log.warn("Key-value separator character #0 not found in style #1, dropping", KEY_VALUE_SEPARATOR + styleBuilder.toString()); return; } String styleName = styleString.substring(0, keyValueBreakpointIndex).toLowerCase().trim(); if (!propertyBuilderMap.containsKey(styleName)) { log.warn("No property builder (unknown style) for property #0", styleName); return; } PropertyBuilder propertyBuilder = propertyBuilderMap.get(styleName); String styleValue = styleString.substring(keyValueBreakpointIndex + 1); log.trace("Parsed style #0 to #1 => #2", styleString, styleName, styleValue); String[] styleValues = trimArray(styleValue.trim().split(STYLE_SHORTHAND_SEPARATOR)); styleMap.putAll(propertyBuilder.parseProperty(styleName, styleValues)); }
protected void trace(Object object, Throwable t, Object... params) { log.trace(object, t, params); }
/** * {@inheritDoc} */ @Admin public String remove() { this.log.debug("remove administrator"); try { this.administratorService.remove(this.selectedAdmin); } catch (RemoveLastAdminException e) { this.log.error("cannot remove last administrator"); this.facesMessages.addFromResourceBundle( StatusMessage.Severity.ERROR, "errorRemoveLastAdmin"); return null; } adminListFactory(); return "success"; } }
@Override public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (log.isDebugEnabled()) { log.debug("Converting date '#0' to string for clientId '#1' using Seam's built-in JSF date converter", value, component.getClientId(context)); } return super.getAsString(context, component, value); }
/** * Creates a JExcelAPI date display format * * @param mask The format mask * @return The display format * @see <a * href="http://jexcelapi.sourceforge.net/resources/javadocs/2_6/docs/jxl/write/DateFormat.html">DateFormat</a> */ public static DisplayFormat createDateFormat(String mask) { if (log.isTraceEnabled()) { log.trace("Creating date format for mask #0", mask); } try { return (DisplayFormat) getConstant(DATEFORMATS_CLASSNAME, mask.toUpperCase()); } catch (NoSuchFieldException e) { // Look! An empty catch block! But this one is documented. We are using // this to see if there is a constant // defines for this in the class return null; } }
public void orderShipped() { log.info("*************** Fire ORDER_SHIPPED ***************************"); log.info("First Name = " + customerfullname); log.info("Phone = " + cutomerphone); log.info("orderId = " + orderId); log.info("order = " + order); conn.join(Direction.DUPLEX, mg); } catch (UnsupportedOperationException uoe) { log.error("An unexpected exception occurred while trying to create the request for shipping call", uoe); } catch (Exception e) { log.error("An unexpected exception occurred while trying to create the request for shipping call", e);
protected void warn(Object object, Throwable t, Object... params) { log.warn(object, t, params); }
protected void trace(Object object, Object... params) { log.trace(object, params); }