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

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

?? definitionsfactoryconfig.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: DefinitionsFactoryConfig.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 1999-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.struts.tiles;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import org.apache.commons.beanutils.BeanUtils;

/**
 * A TilesFactoryConfig object hold configuration attributes for a tile
 * definition factory.
 *
 * @since Struts 1.1
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */
public class DefinitionsFactoryConfig implements Serializable {

    /**
     * Fully qualified classname of the factory to create.
     * If no classname is set, a default factory is created
     * (of class "org.apache.struts.tiles.xmlDefinition.I18nFactorySet").
     */
    protected String factoryClassname =
        "org.apache.struts.tiles.xmlDefinition.I18nFactorySet";

    /**
     * Specifies whether the parser will validate configuration files.
     * Default value is true.
     */
    protected boolean parserValidate = true;

    /** 
     * Definition configuration file specified by user. 
     */
    protected String definitionConfigFiles = null;

    /**
     * Specifies whether the factory is "module-aware".
     */
    protected boolean moduleAware = true;

    /**
     * The name associated to this factory.
     * <br>
     * With Struts 1.1, this name is the module name to which this factory
     * belong. It is set by the system.
     * <br>
     * In prior versions, this property is not used.
     */
    protected String factoryName;

    /** 
     * Alternate name for parser debug details properties in configuration file. 
     * @deprecated This will be removed in a release after Struts 1.2.
     */
    public static final String PARSER_DETAILS_PARAMETER_NAME =
        "definitions-parser-details";

    /**
     * Alternate name for parser validate properties in configuration file. 
     */
    public static final String PARSER_VALIDATE_PARAMETER_NAME =
        "definitions-parser-validate";

    /** 
     * Alternate name for factory classname properties in configuration file. 
     */
    public static final String FACTORY_CLASSNAME_PARAMETER_NAME =
        "definitions-factory-class";

    /** 
     * Alternate name for definition files properties in configuration file. 
     */
    public static final String DEFINITIONS_CONFIG_PARAMETER_NAME =
        "definitions-config";

    /** 
     * Alternate name for definition debug details properties in configuration file. 
     * @deprecated This will be removed in a release after Struts 1.2.
     */
    public static final String TILES_DETAILS_PARAMETER_NAME = "definitions-debug";

    /**
     * Map of extra attribute available.
     */
    private Map extraAttributes = new HashMap();

    /**
     * Default constructor.
     */
    public DefinitionsFactoryConfig() {
        super();
    }

    /**
     * Constructor.
     * Create configuration object, and initialize it with parameters from Map.
     * Parameters corresponding to an attribute are filtered and stored in appropriate
     * attribute.
     * @param initParameters Map.
     */
    public DefinitionsFactoryConfig(Map initParameters) {
        super();
    }

    /**
     * Get the module aware flag.
     * @return <code>true</code>: user wants a single factory instance,
     * <code>false</code>: user wants multiple factory instances (one per module with Struts)
     */
    public boolean isModuleAware() {
        return moduleAware;
    }
    /**
     * Set the module aware flag.
     * @param moduleAware <code>true</code>: user wants a single factory instance,
     * <code>false</code>: user wants multiple factory instances (one per module with Struts)
     */
    public void setModuleAware(boolean moduleAware) {
        this.moduleAware = moduleAware;
    }

    /**
     * Get the classname of the factory.
     * @return Classname.
     */
    public String getFactoryClassname() {
        return factoryClassname;
    }

    /**
     * Set the classname of the factory..
     * @param aFactoryClassname Classname of the factory.
     */
    public void setFactoryClassname(String aFactoryClassname) {
        factoryClassname = aFactoryClassname;
    }

    /**
     * Determines if the parser is validating.
     * @return <code>true<code> when in validating mode.
     */
    public boolean getParserValidate() {
        return parserValidate;
    }

    /**
     * Set the validating mode for the parser.
     * @param aParserValidate <code>true</code> for validation, <code>false</code> otherwise
     */
    public void setParserValidate(boolean aParserValidate) {
        parserValidate = aParserValidate;
    }

    /**
     * Get the definition config files.
     * @return Defition config files.
     */
    public String getDefinitionConfigFiles() {
        return definitionConfigFiles;
    }

    /**
     * Set the definition config files.
     * @param aDefinitionConfigFiles Definition config files.
     */
    public void setDefinitionConfigFiles(String aDefinitionConfigFiles) {
        definitionConfigFiles = aDefinitionConfigFiles;
    }

    /**
     * Set value of an additional attribute.
     * @param name Name of the attribute.
     * @param value Value of the attribute.
     */
    public void setAttribute(String name, Object value) {
        extraAttributes.put(name, value);
    }

    /**
     * Get value of an additional attribute.
     * @param name Name of the attribute.
     * @return Value of the attribute, or null if not found.
     */
    public Object getAttribute(String name) {
        return extraAttributes.get(name);
    }

    /**
     * Get additional attributes as a Map.
     * @return Map A Map containing attribute name - value pairs.
     */
    public Map getAttributes() {
        Map map = new HashMap(extraAttributes);
        // Add property attributes using old names
        /*
          map.put(DEFINITIONS_CONFIG_PARAMETER_NAME, getDefinitionConfigFiles());
          map.put(TILES_DETAILS_PARAMETER_NAME, Integer.toString(getDebugLevel()) );
          map.put(PARSER_DETAILS_PARAMETER_NAME, Integer.toString(getParserDebugLevel()) );
          map.put(PARSER_VALIDATE_PARAMETER_NAME, new Boolean(getParserValidate()).toString() );
        
          if( ! "org.apache.struts.tiles.xmlDefinition.I18nFactorySet".equals(getFactoryClassname()) )
          map.put(FACTORY_CLASSNAME_PARAMETER_NAME, getFactoryClassname());
        */
        return map;
    }

    /**
     * Populate this config object from properties map, based on
     * the specified name/value pairs.  This method uses the populate() method from
     * org.apache.commons.beanutils.BeanUtil.
     * <p>
     * Properties keys are scanned for old property names, and linked to the new name
     * if necessary. This modifies the properties map.
     * <p>
     * The particular setter method to be called for each property is
     * determined using the usual JavaBeans introspection mechanisms.  Thus,
     * you may identify custom setter methods using a BeanInfo class that is
     * associated with the class of the bean itself.  If no such BeanInfo
     * class is available, the standard method name conversion ("set" plus
     * the capitalized name of the property in question) is used.
     * <p>
     * <strong>NOTE</strong>:  It is contrary to the JavaBeans Specification
     * to have more than one setter method (with different argument
     * signatures) for the same property.
     *
     * @param properties Map keyed by property name, with the
     *  corresponding (String or String[]) value(s) to be set.
     *
     * @exception IllegalAccessException if the caller does not have
     *  access to the property accessor method.
     * @exception InvocationTargetException if the property accessor method
     *  throws an exception.
     * @see org.apache.commons.beanutils.BeanUtils
     */
    public void populate(Map properties)
        throws IllegalAccessException, InvocationTargetException {

        // link old parameter names for backward compatibility
        linkOldPropertyNames(properties);
        BeanUtils.populate(this, properties);
    }

    /**
     * Link old property names to new property names.
     * This modifies the map.
     * @param properties Map keyed by property name, with the
     *  corresponding (String or String[]) value(s) to be set.
     */
    static public void linkOldPropertyNames(Map properties) {
        Set entries = properties.entrySet();
        Map toAdd = new HashMap();
        Iterator i = entries.iterator();
        while (i.hasNext()) {
            Map.Entry entry = (Map.Entry) i.next();

            if (DEFINITIONS_CONFIG_PARAMETER_NAME.equals(entry.getKey())) {
                toAdd.put("definitionConfigFiles", entry.getValue());

            } else if (FACTORY_CLASSNAME_PARAMETER_NAME.equals(entry.getKey())) {
                toAdd.put("factoryClassname", entry.getValue());

            } else if (PARSER_DETAILS_PARAMETER_NAME.equals(entry.getKey())) {
                toAdd.put("parserDebugLevel", entry.getValue());

            } else if (PARSER_VALIDATE_PARAMETER_NAME.equals(entry.getKey())) {
                toAdd.put("parserValidate", entry.getValue());

            } else if (TILES_DETAILS_PARAMETER_NAME.equals(entry.getKey())) {
                toAdd.put("debugLevel", entry.getValue());
            }
        }

        if (toAdd.size() > 0) {
            properties.putAll(toAdd);
        }
    }

    /**
     * Get the factory name.
     */
    public String getFactoryName() {
        return factoryName;
    }
    /**
     * Set the factory name.
     * @param factoryName Name of the factory.
     */
    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线视频免费91| 成人综合婷婷国产精品久久蜜臀 | 另类欧美日韩国产在线| 欧美日韩亚洲综合一区| 偷拍日韩校园综合在线| 国产亚洲欧洲一区高清在线观看| 亚洲精品免费播放| 蜜臂av日日欢夜夜爽一区| 亚洲精品你懂的| 亚洲人成精品久久久久| 欧美这里有精品| 日韩欧美在线不卡| 日韩精品成人一区二区三区| 7799精品视频| 国产一区二区三区免费在线观看| 日韩欧美一级二级| 国内精品伊人久久久久av一坑 | 欧美日韩精品一区二区三区蜜桃 | 日韩精品影音先锋| 国产做a爰片久久毛片 | 91精品国产综合久久精品| 美女精品自拍一二三四| 欧日韩精品视频| 亚洲色欲色欲www在线观看| 欧美在线高清视频| 国产精品18久久久久| 国产欧美视频一区二区| 成人一区二区三区视频在线观看| 日韩一区欧美一区| 欧美日韩情趣电影| 日本vs亚洲vs韩国一区三区 | 国产三级一区二区| 欧美精品色一区二区三区| k8久久久一区二区三区| 丁香亚洲综合激情啪啪综合| 日韩高清国产一区在线| 亚洲免费伊人电影| 6080日韩午夜伦伦午夜伦| 国产精品一区二区男女羞羞无遮挡| 国产精品黄色在线观看| 欧美日韩国产在线观看| 成人午夜电影久久影院| 六月丁香婷婷色狠狠久久| 亚洲成人在线免费| 午夜视黄欧洲亚洲| 天涯成人国产亚洲精品一区av| 精品久久国产老人久久综合| 精品久久一区二区三区| 久久久久久综合| 亚洲国产高清不卡| 一区二区三区四区在线| 天堂在线一区二区| 日韩精品一二区| 国产一区二区在线观看视频| 国产精品自在欧美一区| 欧美精品一区二区蜜臀亚洲| 日韩欧美国产一区在线观看| 美女在线观看视频一区二区| 国产精品亚洲а∨天堂免在线| 国产精品一二三| 一本一本久久a久久精品综合麻豆| 欧美视频在线一区二区三区| 国产69精品久久99不卡| 91国偷自产一区二区开放时间 | 欧美久久久久免费| 久久久精品tv| 视频一区免费在线观看| 国产91丝袜在线播放0| 欧美日韩国产精品成人| 国产亚洲1区2区3区| 亚洲另类春色国产| 国产精品一区二区不卡| 欧美一级高清大全免费观看| 亚洲欧洲99久久| 激情都市一区二区| 日韩免费看的电影| 青青草国产成人99久久| 在线视频综合导航| 亚洲一区二区三区在线看 | 国产电影一区二区三区| 日韩视频免费观看高清完整版在线观看 | 懂色av一区二区三区蜜臀| 久久综合九色综合97婷婷女人| 五月婷婷另类国产| 精品视频1区2区3区| 亚洲福利视频一区二区| 91福利区一区二区三区| 国产午夜久久久久| 国产91丝袜在线观看| 亚洲视频一区在线| 欧美主播一区二区三区美女| 久久99精品国产| 欧美国产精品一区二区| 国v精品久久久网| 成人免费黄色在线| 国产成人午夜高潮毛片| 国产精品羞羞答答xxdd| 性做久久久久久免费观看| 亚洲人成精品久久久久| 欧美一区二区三区系列电影| 91亚洲永久精品| 91美女在线视频| 91麻豆高清视频| 日本精品一区二区三区四区的功能| 狠狠色丁香久久婷婷综| 久久av老司机精品网站导航| 一区二区三区电影在线播| 亚洲色图制服丝袜| 欧美亚洲国产一区在线观看网站| 国产一区三区三区| 国产成人免费视频网站| 国产剧情一区二区| 国产精品一二三在| 国产精品亚洲视频| 国模一区二区三区白浆| 久久99国产精品成人| 久久精品国产亚洲a| 蜜臀a∨国产成人精品| 日韩vs国产vs欧美| 日韩精品久久理论片| 日韩av电影免费观看高清完整版| 婷婷久久综合九色综合伊人色| 亚洲成人av一区| 久久66热re国产| 国产99久久久国产精品免费看| 岛国av在线一区| 91在线视频18| 91亚洲午夜精品久久久久久| 欧美一区二区三区性视频| 日韩精品一区二区三区四区视频| 精品国产自在久精品国产| 精品久久一区二区| 欧美精彩视频一区二区三区| 国产精品久久久久久久久动漫 | 久久国产人妖系列| 色婷婷av一区二区三区软件| 欧美另类videos死尸| xnxx国产精品| 亚洲成在人线在线播放| av亚洲精华国产精华精| 日韩视频国产视频| 国产精品毛片大码女人| 美女免费视频一区| 欧美在线你懂得| 亚洲男帅同性gay1069| 美腿丝袜亚洲色图| 宅男噜噜噜66一区二区66| 亚洲男女一区二区三区| 成人午夜大片免费观看| 日韩精品一区二区三区视频在线观看 | 国产精品国产a| 日本欧美一区二区| 国产a视频精品免费观看| 不卡av电影在线播放| 精品成人佐山爱一区二区| 成人欧美一区二区三区1314| 国产精品一品二品| www一区二区| 久久精品国产在热久久| 欧美一区二区在线免费播放| 午夜亚洲福利老司机| 欧美亚洲免费在线一区| 麻豆中文一区二区| 国产婷婷一区二区| 欧美日韩国产大片| 国产超碰在线一区| 午夜欧美一区二区三区在线播放| 色噜噜久久综合| 高清日韩电视剧大全免费| 亚洲一区二区三区在线| 欧美激情在线看| 久久精品人人做人人爽人人| 91丨九色丨蝌蚪丨老版| 亚洲自拍偷拍麻豆| 9191国产精品| 国产suv精品一区二区三区| 精品久久久久久久久久久院品网| 91首页免费视频| 久久99久久久久| 日韩av一二三| 最新成人av在线| 亚洲日本va午夜在线电影| 欧美成人a在线| 欧美三级韩国三级日本三斤| 91香蕉视频在线| 国产高清不卡一区| 精品亚洲aⅴ乱码一区二区三区| 亚洲高清免费视频| 亚洲欧美日本韩国| 久久久精品日韩欧美| 91精品国产综合久久久久久久久久 | 亚洲一区二区三区四区五区中文 | 美女一区二区久久| 亚洲欧美乱综合| 国产精品青草久久| 久久综合久久综合久久| 国产午夜亚洲精品午夜鲁丝片| 精品国产一区二区三区忘忧草| 欧美乱熟臀69xxxxxx| 国产欧美一区在线|