Package org.apache.commons.configuration

Examples of org.apache.commons.configuration.FileConfiguration


     * @throws ConfigureRuntimeException
     * @throws �p�G��w����w�Ѽ�{fileName}�ɦW���պA���󥢱ѡA
     *        �h�ߥXConfigureRuntimeException.
     */
    public static ConfigureLinkage locateConfigure(String fileName) throws ConfigureRuntimeException {
        FileConfiguration fConfigure = ConfigureManager.checkConfigure(fileName);
        return new ConfigureLinkage(fConfigure);
    }
View Full Code Here


        CompositeConfiguration configure = ((CompositeConfiguration)_Configure);
        for (int i = 0, num = configure.getNumberOfConfigurations(); i < num; i++) {
            // �ˮ֬O�_���ɮ������B���ɮצW�ٵ�����w�Ѽ��ɦW{fileName}�A�æ^�ǸӲպA�]�w����
            if (configure.getConfiguration(i) instanceof FileConfiguration) {
                FileConfiguration fConfigure =
                    (FileConfiguration)configure.getConfiguration(i);
                if (fConfigure.getFileName().equals(fileName)) {
                    return fConfigure;
                }
            }
        }
View Full Code Here

        // �̧��ˮ֨ó]�w���s���J���
        for (int i = 0, num = _Configure.getNumberOfConfigurations(); i < num; i++) {
            // �ˮ֬O�_���ɮ������]�w�ɡA�u���ɮ������~�a�\�]�w���s���J��T
            if (_Configure.getConfiguration(i) instanceof FileConfiguration) {
                FileConfiguration fConfigure =
                    (FileConfiguration)_Configure.getConfiguration(i);
                // �ˮֲպA�]�w����W�٬O�_����
                if (map.containsKey(fConfigure.getFileName())) {
                    String fName = fConfigure.getFileName();
                    FileChangedReloadingStrategy reloadStrategy =
                        new FileChangedReloadingStrategy();
                    reloadStrategy.setRefreshDelay(((Long)map.get(fName)).longValue());
                    fConfigure.setReloadingStrategy(reloadStrategy);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.configuration.FileConfiguration

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.