⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dom4jconfigurable.java

📁 一个java工作流引擎
💻 JAVA
字号:
package org.jbpm.delegation;

import org.apache.commons.logging.*;
import org.dom4j.*;
import org.jbpm.*;
import org.jbpm.util.xml.*;

/**
 * is a convenience class for implementing delegation classes
 * that are configured with an xml string.  This class can be
 * used as a super class for delegation classes or as a helper 
 * class (with method {@link #getRootElement(String)}).
 */
public abstract class Dom4jConfigurable implements Configurable {

	public final void configure(String configuration) throws ConfigurationException {
    try {
      configure( Dom4jHelper.getRootElement( configuration ) );
    } catch (DocumentException e) {
      log.error( "coudln't parse xml delegation configuration", e );
      throw new ConfigurationException( "coudln't parse xml delegation configuration", e );
    }
	}
  
  public abstract void configure( Element root ) throws ConfigurationException;
  
  private static Log log = LogFactory.getLog(Dom4jConfigurable.class);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -