Package org.sf.bee.commons.logging.configuration.elements

Examples of org.sf.bee.commons.logging.configuration.elements.FormatterElement


                    }
                }

                // FORMATTER
                if (null != handler) {
                    FormatterElement fmtElem = this.solveFormatterElement(hndlElem.getFormatterElement());
                    Formatter formatter = this.getFormatterInstance(fmtElem);
                    if (null != formatter) {
                        handler.setFormatter(formatter);
                    }
                }
View Full Code Here


        }
        return element;
    }

    private FormatterElement solveFormatterElement(FormatterElement element) {
        FormatterElement cached = this.getFormatterElement(element.getName());
        // replace hndlElem with cached one.
        if (null != cached) {
            return cached;
        }
        return element;
View Full Code Here

        if (null == formatters || formatters.isEmpty()) {
            return;
        }
        // ready to load formatters
        for (XmlNode formatterNode : formatters) {
            FormatterElement element = new FormatterElement(formatterNode);
            if (null != element) {
                this.addFormatterElementToCache(element);
            }
        }
    }
View Full Code Here

    }

    private FormatterElement getFormatterElement(XmlNode node) {
        // first search an element in cache.
        synchronized (_formattersElementCache) {
            FormatterElement element = new FormatterElement(node);
            if (_handlersElementCache.containsKey(element.getName())) {
                return _formattersElementCache.get(element.getName());
            } else {
                return element;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.commons.logging.configuration.elements.FormatterElement

Copyright © 2018 www.massapicom. 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.