亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? configurationfactory.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        this.digesterRuleNamespaceURI = digesterRuleNamespaceURI;
    }
    /**
     * Configure the current digester to be namespace aware and to have
     * a Configuration object to which all of the other configurations
     * should be added
     *
     * @param digester The Digester to configure
     */
    private void configureNamespace(Digester digester)
    {
        if (getDigesterRuleNamespaceURI() != null)
        {
            digester.setNamespaceAware(true);
            digester.setRuleNamespaceURI(getDigesterRuleNamespaceURI());
        }
        else
        {
            digester.setNamespaceAware(false);
        }
        digester.setValidating(false);
    }
    /**
     * Returns the Base path from which this Configuration Factory operates.
     * This is never null. If you set the BasePath to null, then a base path
     * according to the configuration to load is returned.
     *
     * @return The base Path of this configuration factory.
     */
    public String getBasePath()
    {
        String path = StringUtils.isEmpty(basePath) ?
        impliciteBasePath : basePath;
        return StringUtils.isEmpty(path) ? "." : path;
    }
    /**
     * Sets the basePath for all file references from this Configuration Factory.
     * Normally a base path need not to be set because it is determined by
     * the location of the configuration file to load. All relative pathes in
     * this file are resolved relative to this file. Setting a base path makes
     * sense if such relative pathes should be otherwise resolved, e.g. if
     * the configuration file is loaded from the class path and all sub
     * configurations it refers to are stored in a special config directory.
     *
     * @param basePath The new basePath to set.
     */
    public void setBasePath(String basePath)
    {
        this.basePath = basePath;
    }

    /**
     * A base class for digester factory classes. This base class maintains
     * a default class for the objects to be created.
     * There will be sub classes for specific configuration implementations.
     */
    public class DigesterConfigurationFactory
        extends AbstractObjectCreationFactory
        implements ObjectCreationFactory
    {
        /** Actual class to use. */
        private Class clazz;

        /**
         * Creates a new instance of <code>DigesterConfigurationFactory</code>.
         * @param clazz the class which we should instantiate
         */
        public DigesterConfigurationFactory(Class clazz)
        {
            this.clazz = clazz;
        }

        /**
         * Creates an instance of the specified class.
         * @param attribs the attributes (ignored)
         * @return the new object
         * @exception Exception if object creation fails
         */
        public Object createObject(Attributes attribs) throws Exception
        {
            return clazz.newInstance();
        }
    }

    /**
     * A tiny inner class that allows the Configuration Factory to
     * let the digester construct BasePathConfiguration objects
     * that already have the correct base Path set.
     *
     */
    public class BasePathConfigurationFactory
        extends DigesterConfigurationFactory
    {
        /**
         * C'tor
         *
         * @param clazz The class which we should instantiate.
         */
        public BasePathConfigurationFactory(Class clazz)
        {
            super(clazz);
        }

        /**
         * Gets called by the digester.
         *
         * @param attributes the actual attributes
         * @return the new object
         * @throws Exception Couldn't instantiate the requested object.
         */
        public Object createObject(Attributes attributes) throws Exception
        {
            BasePathLoader bpl =
                (BasePathLoader) super.createObject(attributes);
            bpl.setBasePath(getBasePath());
            return bpl;
        }
    }

    /**
     * A tiny inner class that allows the Configuration Factory to
     * let the digester construct JNDIPathConfiguration objects.
     *
     */
    public class JNDIConfigurationFactory
        extends DigesterConfigurationFactory
    {
        /**
         * C'tor
         */
        public JNDIConfigurationFactory()
        {
            super(JNDIConfiguration.class);
        }
    }

    /**
     * A simple data class that holds all information about a configuration
     * from the <code>&lt;additional&gt;</code> section.
     */
    public static class AdditionalConfigurationData
    {
        /** Stores the configuration object.*/
        private Configuration configuration;

        /** Stores the location of this configuration in the global tree.*/
        private String at;

        /**
         * Returns the value of the <code>at</code> attribute.
         * @return the at attribute
         */
        public String getAt()
        {
            return at;
        }

        /**
         * Sets the value of the <code>at</code> attribute.
         * @param string the attribute value
         */
        public void setAt(String string)
        {
            at = string;
        }

        /**
         * Returns the configuration object.
         * @return the configuration
         */
        public Configuration getConfiguration()
        {
            return configuration;
        }

        /**
         * Sets the configuration object. Note: Normally this method should be
         * named <code>setConfiguration()</code>, but the name
         * <code>addConfiguration()</code> is required by some of the digester
         * rules.
         * @param config the configuration to set
         */
        public void addConfiguration(Configuration config)
        {
            configuration = config;
        }
    }

    /**
     * An internally used helper class for constructing the composite
     * configuration object.
     */
    public static class ConfigurationBuilder
    {
        /** Stores the composite configuration.*/
        private CompositeConfiguration config;

        /** Stores a collection with the configs from the additional section.*/
        private Collection additionalConfigs;

        /**
         * Creates a new instance of <code>ConfigurationBuilder</code>.
         */
        public ConfigurationBuilder()
        {
            config = new CompositeConfiguration();
            additionalConfigs = new LinkedList();
        }

        /**
         * Adds a new configuration to this object. This method is called by
         * Digester.
         * @param conf the configuration to be added
         */
        public void addConfiguration(Configuration conf)
        {
            config.addConfiguration(conf);
        }

        /**
         * Adds information about an additional configuration. This method is
         * called by Digester.
         * @param data the data about the additional configuration
         */
        public void addAdditionalConfig(AdditionalConfigurationData data)
        {
            additionalConfigs.add(data);
        }

        /**
         * Returns the final composite configuration.
         * @return the final configuration object
         */
        public CompositeConfiguration getConfiguration()
        {
            if(!additionalConfigs.isEmpty())
            {
                Configuration unionConfig =
                createAdditionalConfiguration(additionalConfigs);
                if(unionConfig != null)
                {
                    addConfiguration(unionConfig);
                }  /* if */
                additionalConfigs.clear();
            }  /* if */

            return config;
        }

        /**
         * Creates a configuration object with the union of all properties
         * defined in the <code>&lt;additional&gt;</code> section. This
         * implementation returns a <code>HierarchicalConfiguration</code>
         * object.
         * @param configs a collection with
         * <code>AdditionalConfigurationData</code> objects
         * @return the union configuration (can be <b>null</b>)
         */
        protected Configuration createAdditionalConfiguration(
        Collection configs)
        {
            HierarchicalConfiguration result = new HierarchicalConfiguration();

            for(Iterator it = configs.iterator(); it.hasNext();)
            {
                AdditionalConfigurationData cdata =
                (AdditionalConfigurationData) it.next();
                result.addNodes(cdata.getAt(),
                createRootNode(cdata).getChildren().asVector());
            }  /* for */

            return (result.isEmpty()) ? null : result;
        }

        /**
         * Creates a configuration root node for the specified configuration.
         * @param cdata the configuration data object
         * @return a root node for this configuration
         */
        private HierarchicalConfiguration.Node createRootNode(
        AdditionalConfigurationData cdata)
        {
            if(cdata.getConfiguration() instanceof HierarchicalConfiguration)
            {
                // we can directly use this configuration's root node
                return ((HierarchicalConfiguration) cdata.getConfiguration())
                .getRoot();
            }  /* if */

            else
            {
                // transform configuration to a hierarchical root node
                HierarchicalConfigurationNodeConverter conv =
                new HierarchicalConfigurationNodeConverter();
                conv.process(cdata.getConfiguration());
                return conv.getRootNode();
            }  /* else */
        }
    }

    /**
     * A specialized <code>HierarchicalConfigurationConverter</code> class
     * that creates a <code>HierarchicalConfiguration</code> root node from
     * an arbitrary <code>Configuration</code> object. This class is used to
     * add additional configuration objects to the hierarchical configuration
     * managed by the <code>ConfigurationBuilder</code>.
     */
    static class HierarchicalConfigurationNodeConverter
    extends HierarchicalConfigurationConverter
    {
        /** A stack for constructing the hierarchy.*/
        private Stack nodes;

        /** Stores the root node.*/
        private HierarchicalConfiguration.Node root;

        /**
         * Default constructor.
         */
        public HierarchicalConfigurationNodeConverter()
        {
            nodes = new Stack();
            root = new HierarchicalConfiguration.Node();
            nodes.push(root);
        }

        /**
         * Callback for an element start event. Creates a new node and adds
         * it to the actual parent.
         * @param name the name of the new node
         * @param value the node's value
         */
        protected void elementStart(String name, Object value)
        {
            HierarchicalConfiguration.Node parent =
            (HierarchicalConfiguration.Node) nodes.peek();
            HierarchicalConfiguration.Node child =
            new HierarchicalConfiguration.Node(name);
            if(value != null)
            {
                child.setValue(value);
            }  /* if */
            parent.addChild(child);
            nodes.push(child);
        }

        /**
         * Callback for an element end event. Clears the stack.
         * @param name the name of the element
         */
        protected void elementEnd(String name)
        {
            nodes.pop();
        }

        /**
         * Returns the constructed root node.
         * @return the root node
         */
        public HierarchicalConfiguration.Node getRootNode()
        {
            return root;
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品成人综合 | 国产一区免费电影| 青青国产91久久久久久| 欧美一级在线观看| 国产精品高潮呻吟久久| 日韩中文字幕区一区有砖一区| 国产东北露脸精品视频| 亚洲国产成人在线| 一本在线高清不卡dvd| 国产亚洲短视频| 99免费精品在线观看| 欧美成人猛片aaaaaaa| 亚洲国产一区二区三区| 91精品国产一区二区三区| 有码一区二区三区| 91精品国产一区二区三区| 一区二区在线观看视频在线观看| 国产精品影音先锋| 亚洲婷婷综合色高清在线| 欧美探花视频资源| 亚洲蜜臀av乱码久久精品| 制服丝袜中文字幕亚洲| 国产精品538一区二区在线| 日韩欧美国产1| 亚洲国产日韩精品| 精品动漫一区二区三区在线观看| 不卡影院免费观看| 国产区在线观看成人精品| 成人av免费网站| 国产精品毛片高清在线完整版| 色爱区综合激月婷婷| 国内精品不卡在线| 一二三四社区欧美黄| 久久你懂得1024| 欧美专区日韩专区| 国产一区二区免费在线| 久久只精品国产| 久久机这里只有精品| 欧美成人精品1314www| 色素色在线综合| 国产精品自拍一区| 亚洲h精品动漫在线观看| 日本一区二区免费在线| 欧美一区日韩一区| 国产在线一区二区| 亚洲亚洲人成综合网络| 国产精品久久久久国产精品日日| 欧美一级片在线| 国产精品综合网| 国产精品色哟哟| 精品精品国产高清一毛片一天堂| 国产在线精品免费| 青椒成人免费视频| 亚洲一二三四区不卡| 欧美日韩视频在线第一区 | 欧美videos中文字幕| 欧美日韩国产一区二区三区地区| www.欧美日韩| 亚洲精品乱码久久久久久久久| 国产亚洲成aⅴ人片在线观看| 欧美v亚洲v综合ⅴ国产v| 91麻豆精品国产综合久久久久久| 狂野欧美性猛交blacked| 视频一区免费在线观看| 亚洲国产视频网站| 久久综合狠狠综合久久激情 | 2021国产精品久久精品| 欧美一级在线观看| 国产成人一级电影| 久久99精品久久久久久久久久久久| 偷拍一区二区三区四区| 亚洲超碰精品一区二区| 偷拍亚洲欧洲综合| 国产女主播一区| 欧美激情在线观看视频免费| 26uuu精品一区二区在线观看| 99国产精品99久久久久久| 国产成人av电影在线| 成人免费毛片嘿嘿连载视频| 成人精品国产免费网站| 99久久99久久精品国产片果冻| 成人黄色在线视频| 青青草伊人久久| 捆绑调教一区二区三区| 亚洲乱码精品一二三四区日韩在线 | 欧美一级日韩免费不卡| 9色porny自拍视频一区二区| 亚洲18女电影在线观看| 亚洲国产精品t66y| 3d成人h动漫网站入口| 欧美一级欧美三级在线观看| 精品日韩在线观看| 久久久精品综合| 国产精品天干天干在观线| 91精品国产综合久久精品麻豆| 国产精品亚洲人在线观看| 国产成人自拍网| 成人av免费在线观看| 国产一区二区不卡| 国产99精品视频| 色网站国产精品| 成人性生交大片免费| 不卡的av网站| 欧美视频在线不卡| av色综合久久天堂av综合| 久久国产婷婷国产香蕉| 亚洲不卡av一区二区三区| 九九精品一区二区| 日韩电影在线免费观看| 国产精品一二三四五| 极品美女销魂一区二区三区 | 老司机免费视频一区二区三区| 亚洲一区二区中文在线| 国产精品久久久久影院色老大| 夜夜嗨av一区二区三区| 一区二区中文视频| 丝袜a∨在线一区二区三区不卡| 亚洲精品高清视频在线观看| 国产精品免费av| 午夜a成v人精品| 成人激情图片网| 不卡的电视剧免费网站有什么| 欧美日韩国产综合一区二区| 欧美亚洲高清一区二区三区不卡| 99riav久久精品riav| 日韩欧美精品三级| 精品国产一区二区三区不卡| 日韩欧美的一区| 一区二区三区91| 国产不卡免费视频| 成人国产一区二区三区精品| 欧美日产国产精品| 91精品婷婷国产综合久久竹菊| 欧日韩精品视频| 欧美日韩国产色站一区二区三区| 国产网站一区二区| 亚洲欧洲日产国产综合网| 国产精品久久久久久一区二区三区 | 欧美一三区三区四区免费在线看| 91精品黄色片免费大全| **性色生活片久久毛片| 国产一区二区成人久久免费影院| 国产传媒欧美日韩成人| 日韩免费成人网| 亚洲成人av福利| 人人爽香蕉精品| 蜜桃视频在线一区| 欧美日韩在线一区二区| 亚洲美女视频在线| 日韩精品免费专区| 欧美性色黄大片手机版| 亚洲欧美激情插| 奇米精品一区二区三区四区| 精品一二三四在线| 99国产精品久| 国产精品毛片高清在线完整版| 亚洲一区在线看| 一本大道久久a久久综合| 国产精品乱子久久久久| 福利视频网站一区二区三区| 久久色在线视频| 伊人夜夜躁av伊人久久| 91在线视频播放| 日韩一区二区麻豆国产| 亚洲成人激情综合网| 欧美视频中文字幕| 亚洲123区在线观看| 欧美精品久久久久久久多人混战 | 精品国产髙清在线看国产毛片 | 国产亚洲成年网址在线观看| 国产电影精品久久禁18| 中文字幕av免费专区久久| 亚洲午夜国产一区99re久久| 欧美色视频一区| 日本美女一区二区| 日韩亚洲欧美成人一区| 美女诱惑一区二区| 久久久亚洲国产美女国产盗摄| 国产成人免费视频一区| 91精品国产入口在线| 欧美激情一区二区三区全黄| 99视频在线观看一区三区| 亚洲蜜臀av乱码久久精品| 欧美日韩精品一二三区| 久久www免费人成看片高清| 2023国产精品自拍| 性做久久久久久久免费看| 欧美挠脚心视频网站| 久久99精品国产麻豆婷婷洗澡| 久久久91精品国产一区二区精品 | 成人免费视频caoporn| 日韩欧美在线影院| 韩国一区二区三区| 亚洲日本va午夜在线影院| 在线观看91精品国产入口| 中文字幕第一区综合| 一本久久a久久免费精品不卡| 日韩 欧美一区二区三区| 国产亚洲一本大道中文在线| 狠狠色综合色综合网络|