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

📄 configurationhandler.java

📁 jConfig,JAVA读取XML的开源项目
💻 JAVA
字号:
/*
 * ConfigurationLoader.java
 *
 * Created on 28. April 2002, 14:41
 */

package org.jconfig.handler;

import org.jconfig.Configuration;
import org.jconfig.ConfigurationManagerException;
import org.jconfig.parser.ConfigurationParser;
/**
 * This interface defines all methods that must be implemented
 * by all Handler classes.
 *
 * @author  Andreas Mecky <andreas.mecky@xcom.de>
 * @author Terry Dye <terry.dye@xcom.de>
 */
public interface ConfigurationHandler {
    
    /**
     * This method loads a configuration and returns it
     * 
     * @param configurationName the name of the configuration
     * @return the Configuration
     * @throws ConfigurationManagerException
     */
    public Configuration load(String configurationName) throws ConfigurationManagerException;
	
	/**
	 * This method loads a configuration using a specific parser and returns it
	 * 
	 * @param configurationName the name of the configuration
	 * @param parser the parser that should be used
	 * @return the Configuration
	 * @throws ConfigurationManagerException
	 */
    public Configuration load(String configurationName,ConfigurationParser parser) throws ConfigurationManagerException;
	
    /**
     * This method should store all categories and properties.
     * 
     * @param configuration the Configuration that should be saved
     * @throws ConfigurationManagerException  
     */
    public void store(Configuration configuration) throws ConfigurationManagerException;
    
}

⌨️ 快捷键说明

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