亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色婷婷av一区二区三区软件| 亚洲色欲色欲www| 3atv在线一区二区三区| 国产成人免费9x9x人网站视频| aaa亚洲精品| 国产成a人亚洲精| 不卡视频一二三| 91国内精品野花午夜精品| 色综合天天综合在线视频| 不卡一二三区首页| 91网址在线看| 精品视频1区2区| 日韩女优制服丝袜电影| 久久亚洲精品国产精品紫薇| 欧美韩日一区二区三区| 亚洲欧洲日韩女同| 亚洲国产va精品久久久不卡综合| 亚洲一区二区av电影| 婷婷久久综合九色综合伊人色| 日韩高清在线不卡| 国内精品嫩模私拍在线| www.亚洲在线| 777奇米成人网| 欧美激情一区二区三区在线| 国产精品成人网| 丝袜亚洲另类欧美综合| 蜜桃久久久久久久| 成a人片国产精品| 91精选在线观看| 亚洲五月六月丁香激情| 激情综合色综合久久综合| 国产成人在线视频播放| 欧美视频一区二区三区| 日韩欧美一级二级| 亚洲色图另类专区| 久久福利资源站| 色综合久久综合网| 久久久www成人免费毛片麻豆| 亚洲欧洲性图库| 久久99国产精品免费| 91福利视频网站| 国产三级一区二区| 免费看欧美女人艹b| 99在线精品视频| 精品欧美一区二区久久 | 亚洲人成网站影音先锋播放| 亚洲成人手机在线| 成人综合婷婷国产精品久久| 欧美日韩的一区二区| 国产精品网站导航| 久久99国内精品| 欧美顶级少妇做爰| 亚洲综合一二三区| 波多野结衣中文字幕一区| 欧美高清在线一区二区| 亚洲午夜三级在线| 95精品视频在线| 久久久国产精华| 国产乱码精品一区二区三区av| 在线成人高清不卡| 亚洲一区二区三区激情| 91视频一区二区| 最近中文字幕一区二区三区| 国产超碰在线一区| 久久精品亚洲精品国产欧美| 卡一卡二国产精品 | 久久精品国产一区二区三区免费看| 99久久伊人久久99| 亚洲欧洲精品一区二区三区| 国产一区二区不卡在线| 精品国产一区二区三区不卡 | 蜜桃一区二区三区四区| 欧洲一区在线电影| 一区二区成人在线观看| 91偷拍与自偷拍精品| 国产精品伦一区二区三级视频| 国产一区二区在线免费观看| 日韩精品影音先锋| 韩国精品免费视频| 久久免费视频色| 成人污污视频在线观看| 国产精品污www在线观看| 高清国产一区二区| 亚洲欧美中日韩| 在线看一区二区| 亚洲第一电影网| 日韩视频一区二区三区在线播放 | 亚洲午夜激情av| 亚洲精选视频在线| 五月天国产精品| 丁香婷婷深情五月亚洲| 日韩精品成人一区二区三区| 亚洲欧洲性图库| 亚洲激情图片一区| 亚洲综合无码一区二区| 天天色图综合网| 成人免费视频在线观看| 日韩理论片网站| 亚洲一二三专区| 一区二区三区欧美日| 国产女同性恋一区二区| 亚洲天堂成人在线观看| 精品欧美乱码久久久久久1区2区| 国产亚洲视频系列| 国产.精品.日韩.另类.中文.在线.播放| 精品国产乱码91久久久久久网站| 国产精品一区三区| 亚洲欧美一区二区久久| 欧美一区二区三区视频在线观看| 韩国欧美国产1区| 中文字幕av资源一区| 欧美性受极品xxxx喷水| 国内久久精品视频| 亚洲欧洲精品天堂一级| 这里只有精品免费| 成人免费黄色大片| 天天综合天天做天天综合| 91精品国产色综合久久久蜜香臀| 国产成人av资源| 亚洲大片一区二区三区| 久久一区二区三区国产精品| 日本麻豆一区二区三区视频| 久久国内精品自在自线400部| 日韩精品91亚洲二区在线观看| 色8久久人人97超碰香蕉987| 日韩欧美的一区二区| 国产在线国偷精品免费看| 国产精品视频在线看| 成人a免费在线看| 国产精品久久久久影视| 视频一区二区中文字幕| 91麻豆精品视频| 日本不卡高清视频| 欧美色网站导航| 免费av成人在线| 亚洲日本韩国一区| 精品国产乱码久久久久久夜甘婷婷| 国产精品伊人色| 国内成人精品2018免费看| 亚洲激情校园春色| 国产精品传媒在线| 国产精品久久久久桃色tv| 欧美成人乱码一区二区三区| 色婷婷精品大视频在线蜜桃视频| 黄网站免费久久| 久久99精品国产麻豆婷婷| 玖玖九九国产精品| 九九**精品视频免费播放| 精品伊人久久久久7777人| 麻豆国产精品视频| 久久激五月天综合精品| 日本一不卡视频| 国产一区在线观看视频| 精品污污网站免费看| 欧美日本不卡视频| 欧美日韩高清不卡| 精品女同一区二区| 欧美国产精品一区| 亚洲一级不卡视频| 国产麻豆视频一区二区| 99久久精品国产导航| 欧美日韩国产免费一区二区| 精品国产免费久久| 日韩一区有码在线| 久久99热国产| 欧美午夜理伦三级在线观看| 欧洲一区二区av| 精品国产免费人成在线观看| 欧美国产成人在线| 亚洲一区二区在线播放相泽| 青草av.久久免费一区| 91久久精品一区二区三| 精品日韩在线观看| 亚洲午夜精品17c| 色综合天天综合狠狠| 精品国产在天天线2019| 精品中文字幕一区二区小辣椒| 99久久免费视频.com| 久久精品一区二区三区不卡 | 国产精品久久久久久久久快鸭| 日韩欧美的一区| 久久久另类综合| 久久99久国产精品黄毛片色诱| 99国产精品99久久久久久| 欧美成va人片在线观看| 亚洲国产日日夜夜| 一区二区三区免费看视频| 亚洲国产你懂的| 欧美电影免费观看高清完整版在 | 免费不卡在线观看| 精品国产91九色蝌蚪| 91福利社在线观看| 日韩国产一区二| 欧美日韩五月天| 一本色道久久综合狠狠躁的推荐| 亚洲国产精品人人做人人爽| 2014亚洲片线观看视频免费| 欧美性色欧美a在线播放| 国产自产高清不卡| 午夜精品一区二区三区电影天堂 |