Package cn.com.parese.elements

Source Code of cn.com.parese.elements.LoggerFactoryElement

package cn.com.parese.elements;


import cn.com.byd.factory.builder.FactoryBuilder;
import cn.com.parese.exception.PareseException;

import org.dom4j.Attribute;
import org.dom4j.Element;

public class LoggerFactoryElement implements FactoryElement {
    public LoggerFactoryElement() {
        super();
    }

    public void doParese(Element element) throws PareseException {
        Attribute attr = element.attribute(ATTRIBUTE_TYPE);
        if (attr == null) {
            throw new PareseException("Not found necessary attribute.");
        }

        FactoryBuilder.createLoggerFactory(attr.getStringValue());
    }
}
TOP

Related Classes of cn.com.parese.elements.LoggerFactoryElement

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.