Package cn.com.byd.compose.source

Examples of cn.com.byd.compose.source.ModuleSource


    if (attributeMethod == null) {
      throw new PareseException("Not found necessary attribute." + attributeMethod);
    }
    Attribute attributeId = element.attribute(ATTRIBUTE_ID);
    ModuleSource source = ModuleSource.INSTANCE;
    ModuleMethodSource methodConfig = new ModuleMethodSource();
    // 设定方法名
    methodConfig.setMethod(attributeMethod.getStringValue());
    methodConfig.setId(attributeId == null ? null : attributeId.getStringValue());
    MethodContext methodContext = new MethodContext();

    methodContext.setIsLog(attributeLog == null ? false : Boolean.parseBoolean(attributeLog.getStringValue()));

    methodContext.setIsTransaction(attributeTransaction == null ? false :
                     Boolean.parseBoolean(attributeTransaction.getStringValue()));

    methodContext.setIsVerify(attributeVerify == null ? false :
                  Boolean.parseBoolean(attributeVerify.getStringValue()));

    methodConfig.setMethodContext(methodContext);

    source.setClassAndMethodList(attributeBeanId.getStringValue(), methodConfig);

    // 解析xml内部组件
    Iterator<Element> it = element.elementIterator();
    Element subElement = null;
    while (it.hasNext()) {
View Full Code Here

TOP

Related Classes of cn.com.byd.compose.source.ModuleSource

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.