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

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

?? logfactory.java

?? Jakarta小組開發的可集成在各種系統中的共用登入管理程序。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright 2001-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.commons.logging;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.security.AccessController;import java.security.PrivilegedAction;import java.util.Enumeration;import java.util.Hashtable;import java.util.Properties;/** * <p>Factory for creating {@link Log} instances, with discovery and * configuration features similar to that employed by standard Java APIs * such as JAXP.</p> * * <p><strong>IMPLEMENTATION NOTE</strong> - This implementation is heavily * based on the SAXParserFactory and DocumentBuilderFactory implementations * (corresponding to the JAXP pluggability APIs) found in Apache Xerces.</p> * * @author Craig R. McClanahan * @author Costin Manolache * @author Richard A. Sitze * @version $Revision: 1.27 $ $Date: 2004/06/06 21:15:12 $ */public abstract class LogFactory {    // ----------------------------------------------------- Manifest Constants    /**     * The name of the property used to identify the LogFactory implementation     * class name.     */    public static final String FACTORY_PROPERTY =        "org.apache.commons.logging.LogFactory";    /**     * The fully qualified class name of the fallback <code>LogFactory</code>     * implementation class to use, if no other can be found.     */    public static final String FACTORY_DEFAULT =        "org.apache.commons.logging.impl.LogFactoryImpl";    /**     * The name of the properties file to search for.     */    public static final String FACTORY_PROPERTIES =        "commons-logging.properties";    /**     * JDK1.3+ <a href="http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider">     * 'Service Provider' specification</a>.     *      */    protected static final String SERVICE_ID =        "META-INF/services/org.apache.commons.logging.LogFactory";    // ----------------------------------------------------------- Constructors    /**     * Protected constructor that is not available for public use.     */    protected LogFactory() { }    // --------------------------------------------------------- Public Methods    /**     * Return the configuration attribute with the specified name (if any),     * or <code>null</code> if there is no such attribute.     *     * @param name Name of the attribute to return     */    public abstract Object getAttribute(String name);    /**     * Return an array containing the names of all currently defined     * configuration attributes.  If there are no such attributes, a zero     * length array is returned.     */    public abstract String[] getAttributeNames();    /**     * Convenience method to derive a name from the specified class and     * call <code>getInstance(String)</code> with it.     *     * @param clazz Class for which a suitable Log name will be derived     *     * @exception LogConfigurationException if a suitable <code>Log</code>     *  instance cannot be returned     */    public abstract Log getInstance(Class clazz)        throws LogConfigurationException;    /**     * <p>Construct (if necessary) and return a <code>Log</code> instance,     * using the factory's current set of configuration attributes.</p>     *     * <p><strong>NOTE</strong> - Depending upon the implementation of     * the <code>LogFactory</code> you are using, the <code>Log</code>     * instance you are returned may or may not be local to the current     * application, and may or may not be returned again on a subsequent     * call with the same name argument.</p>     *     * @param name Logical name of the <code>Log</code> instance to be     *  returned (the meaning of this name is only known to the underlying     *  logging implementation that is being wrapped)     *     * @exception LogConfigurationException if a suitable <code>Log</code>     *  instance cannot be returned     */    public abstract Log getInstance(String name)        throws LogConfigurationException;    /**     * Release any internal references to previously created {@link Log}     * instances returned by this factory.  This is useful in environments     * like servlet containers, which implement application reloading by     * throwing away a ClassLoader.  Dangling references to objects in that     * class loader would prevent garbage collection.     */    public abstract void release();    /**     * Remove any configuration attribute associated with the specified name.     * If there is no such attribute, no action is taken.     *     * @param name Name of the attribute to remove     */    public abstract void removeAttribute(String name);    /**     * Set the configuration attribute with the specified name.  Calling     * this with a <code>null</code> value is equivalent to calling     * <code>removeAttribute(name)</code>.     *     * @param name Name of the attribute to set     * @param value Value of the attribute to set, or <code>null</code>     *  to remove any setting for this attribute     */    public abstract void setAttribute(String name, Object value);    // ------------------------------------------------------- Static Variables    /**     * The previously constructed <code>LogFactory</code> instances, keyed by     * the <code>ClassLoader</code> with which it was created.     */    protected static Hashtable factories = new Hashtable();    // --------------------------------------------------------- Static Methods    /**     * <p>Construct (if necessary) and return a <code>LogFactory</code>     * instance, using the following ordered lookup procedure to determine     * the name of the implementation class to be loaded.</p>     * <ul>     * <li>The <code>org.apache.commons.logging.LogFactory</code> system     *     property.</li>     * <li>The JDK 1.3 Service Discovery mechanism</li>     * <li>Use the properties file <code>commons-logging.properties</code>     *     file, if found in the class path of this class.  The configuration     *     file is in standard <code>java.util.Properties</code> format and     *     contains the fully qualified name of the implementation class     *     with the key being the system property defined above.</li>     * <li>Fall back to a default implementation class     *     (<code>org.apache.commons.logging.impl.LogFactoryImpl</code>).</li>     * </ul>     *     * <p><em>NOTE</em> - If the properties file method of identifying the     * <code>LogFactory</code> implementation class is utilized, all of the     * properties defined in this file will be set as configuration attributes     * on the corresponding <code>LogFactory</code> instance.</p>     *     * @exception LogConfigurationException if the implementation class is not     *  available or cannot be instantiated.     */    public static LogFactory getFactory() throws LogConfigurationException {        // Identify the class loader we will be using        ClassLoader contextClassLoader =            (ClassLoader)AccessController.doPrivileged(                new PrivilegedAction() {                    public Object run() {                        return getContextClassLoader();                    }                });        // Return any previously registered factory for this class loader        LogFactory factory = getCachedFactory(contextClassLoader);        if (factory != null)            return factory;        // Load properties file.        // Will be used one way or another in the end.        Properties props=null;        try {            InputStream stream = getResourceAsStream(contextClassLoader,                                                     FACTORY_PROPERTIES);            if (stream != null) {                props = new Properties();                props.load(stream);                stream.close();            }        } catch (IOException e) {        } catch (SecurityException e) {        }        // First, try the system property        try {            String factoryClass = System.getProperty(FACTORY_PROPERTY);            if (factoryClass != null) {                factory = newFactory(factoryClass, contextClassLoader);            }        } catch (SecurityException e) {            ;  // ignore        }        // Second, try to find a service by using the JDK1.3 jar        // discovery mechanism. This will allow users to plug a logger        // by just placing it in the lib/ directory of the webapp ( or in        // CLASSPATH or equivalent ). This is similar to the second        // step, except that it uses the (standard?) jdk1.3 location in the jar.        if (factory == null) {            try {                InputStream is = getResourceAsStream(contextClassLoader,                                                     SERVICE_ID);                if( is != null ) {                    // This code is needed by EBCDIC and other strange systems.                    // It's a fix for bugs reported in xerces                    BufferedReader rd;                    try {                        rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));                    } catch (java.io.UnsupportedEncodingException e) {                        rd = new BufferedReader(new InputStreamReader(is));                    }                    String factoryClassName = rd.readLine();                    rd.close();                    if (factoryClassName != null &&                        ! "".equals(factoryClassName)) {                        factory= newFactory( factoryClassName, contextClassLoader );                    }                }            } catch( Exception ex ) {                ;            }        }        // Third try a properties file.        // If the properties file exists, it'll be read and the properties        // used. IMHO ( costin ) System property and JDK1.3 jar service        // should be enough for detecting the class name. The properties        // should be used to set the attributes ( which may be specific to        // the webapp, even if a default logger is set at JVM level by a        // system property )

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天堂成人网| 午夜精品久久久久久久99水蜜桃 | 国产不卡视频在线播放| 亚洲一级片在线观看| 久久久精品tv| 51久久夜色精品国产麻豆| 成人黄色软件下载| 理论电影国产精品| 亚洲最大成人网4388xx| 中文字幕av不卡| 欧美sm美女调教| 欧美精品 国产精品| 91色porny| 国产成人超碰人人澡人人澡| 日本在线不卡视频| 亚洲一二三区在线观看| 国产精品久久久久久久浪潮网站| 日韩精品一区二区三区中文精品| 欧美性大战久久久久久久| 波多野结衣中文字幕一区| 国产自产高清不卡| 日本不卡视频在线观看| 久久99精品久久久久久久久久久久 | 一区二区三区.www| 国产精品国产三级国产a| 精品久久一区二区| 精品蜜桃在线看| 欧美日韩性生活| 欧美视频三区在线播放| 在线免费亚洲电影| 91丨九色丨黑人外教| www.一区二区| 丁香天五香天堂综合| 国产高清亚洲一区| 国产高清无密码一区二区三区| 男女激情视频一区| 丝袜脚交一区二区| 青青青伊人色综合久久| 免费精品视频在线| 久久激情五月婷婷| 九九视频精品免费| 国内精品免费**视频| 国产一区免费电影| 国产在线不卡一卡二卡三卡四卡| 久久激五月天综合精品| 久久99国产精品免费| 久久国产福利国产秒拍| 国产一区二区三区四| 国产精品综合久久| 成人性生交大合| 91论坛在线播放| 欧美性大战久久久久久久蜜臀 | 精品区一区二区| 精品美女一区二区| 久久久激情视频| 国产精品国产成人国产三级| 亚洲免费观看高清完整版在线观看 | 日韩欧美高清dvd碟片| 精品国产乱子伦一区| 国产色婷婷亚洲99精品小说| 国产清纯白嫩初高生在线观看91| 国产精品久久三| 亚洲一区二区三区四区在线观看| 天天影视网天天综合色在线播放| 麻豆91在线播放免费| 成人免费视频caoporn| 欧洲精品在线观看| 欧美一二三四区在线| 26uuu精品一区二区在线观看| 亚洲国产成人va在线观看天堂| 69成人精品免费视频| 国产日韩亚洲欧美综合| 日韩毛片视频在线看| 日韩成人免费电影| 成人性视频免费网站| 在线免费观看成人短视频| 欧美精品在线视频| 国产日产欧美精品一区二区三区| 亚洲欧美另类在线| 精品在线你懂的| 一本在线高清不卡dvd| 欧美一区二区三区在线看| 国产欧美视频一区二区三区| 亚洲综合视频在线| 国产传媒欧美日韩成人| 精品视频1区2区| 中文av一区二区| 日本中文字幕不卡| 色狠狠综合天天综合综合| 欧美精品一区二区三区在线| 亚洲精品国产一区二区精华液| 久久er99热精品一区二区| 色婷婷精品大视频在线蜜桃视频 | 日韩三级精品电影久久久 | 亚洲欧美日韩成人高清在线一区| 奇米一区二区三区| 91浏览器在线视频| 久久久精品中文字幕麻豆发布| 亚洲国产成人91porn| 成人av在线播放网站| 日韩欧美一级精品久久| 一区二区三区在线观看网站| 国产精品18久久久久| 欧美福利电影网| 一级日本不卡的影视| caoporen国产精品视频| 精品日产卡一卡二卡麻豆| 午夜婷婷国产麻豆精品| 91毛片在线观看| 国产日韩欧美不卡在线| 国内精品自线一区二区三区视频| 欧美日韩一区二区三区免费看| 国产精品欧美极品| 国产成人亚洲综合a∨婷婷图片| 日韩午夜激情av| 性欧美疯狂xxxxbbbb| 91碰在线视频| 亚洲欧洲日产国码二区| 高清不卡一二三区| 久久青草欧美一区二区三区| 男男视频亚洲欧美| 91精品国产色综合久久| 亚洲国产日韩a在线播放| 精品国产一区二区亚洲人成毛片| 亚洲自拍偷拍图区| 在线观看中文字幕不卡| 亚洲激情综合网| 91在线观看美女| 国产精品色眯眯| 波多野结衣一区二区三区 | 亚洲va国产天堂va久久en| 91论坛在线播放| 亚洲三级免费观看| 一本大道久久a久久综合| 专区另类欧美日韩| 色噜噜狠狠色综合欧洲selulu| 中文字幕一区av| 91在线国产观看| 亚洲欧美电影一区二区| 日本电影亚洲天堂一区| 亚洲图片欧美综合| 欧美日本视频在线| 蜜桃传媒麻豆第一区在线观看| 51精品视频一区二区三区| 日本sm残虐另类| 精品国产sm最大网站免费看| 精品在线你懂的| 中文字幕+乱码+中文字幕一区| 成人av在线播放网站| 亚洲免费成人av| 欧美日本在线播放| 久久黄色级2电影| 久久久国产一区二区三区四区小说| 国产精品1024| 国产精品精品国产色婷婷| 色94色欧美sute亚洲13| 亚洲国产精品久久不卡毛片 | 亚洲黄色免费电影| 精品视频一区二区不卡| 麻豆精品一区二区| 国产日韩欧美高清在线| 色噜噜狠狠色综合欧洲selulu| 亚洲一卡二卡三卡四卡无卡久久 | 国产激情一区二区三区四区| 国产精品免费视频网站| 在线精品亚洲一区二区不卡| 免费人成精品欧美精品| 国产日韩欧美精品综合| 在线免费精品视频| 久久成人免费网| 亚洲素人一区二区| 欧美精选一区二区| 国产成人综合自拍| 一区二区三区在线播放| 日韩一区二区在线看| 国产精品一品二品| 伊人婷婷欧美激情| 欧美精品一区二区三区在线| 91热门视频在线观看| 国产精品白丝在线| 8x8x8国产精品| 国产高清精品在线| 日日骚欧美日韩| 国产精品对白交换视频| 欧美精品国产精品| 99久久精品国产网站| 日本中文在线一区| 亚洲欧美一区二区三区极速播放| 欧美一二三区精品| 色婷婷综合久久久久中文| 国内精品自线一区二区三区视频| 亚洲少妇最新在线视频| wwww国产精品欧美| 欧美性受xxxx| 成人免费毛片app| 久久97超碰国产精品超碰| 亚洲国产综合在线| 国产精品国产三级国产普通话99 | 中文字幕免费在线观看视频一区| 欧美人与性动xxxx|