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

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

?? methodutils.java

?? osworkflow修改版本
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * $Header: /cvs/osworkflow/src/designer/com/opensymphony/workflow/designer/beanutils/MethodUtils.java,v 1.2 2004/04/16 10:36:29 hani Exp $ * $Revision: 1.2 $ * $Date: 2004/04/16 10:36:29 $ * * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in *    the documentation and/or other materials provided with the *    distribution. * * 3. The end-user documentation included with the redistribution, *    if any, must include the following acknowledgement: *       "This product includes software developed by the *        Apache Software Foundation (http://www.apache.org/)." *    Alternately, this acknowledgement may appear in the software itself, *    if and wherever such third-party acknowledgements normally appear. * * 4. The names "Apache", "The Jakarta Project", "Commons", and "Apache Software *    Foundation" must not be used to endorse or promote products derived *    from this software without prior written permission. For written *    permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", *    "Apache" nor may "Apache" appear in their names without prior *    written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */package com.opensymphony.workflow.designer.beanutils;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.lang.reflect.Modifier;import java.util.WeakHashMap;/** * <p> Utility reflection methods focussed on methods in general rather than properties in particular. </p> * * <h3>Known Limitations</h3> * <h4>Accessing Public Methods In A Default Access Superclass</h4> * <p>There is an issue when invoking public methods contained in a default access superclass. * Reflection locates these methods fine and correctly assigns them as public. * However, an <code>IllegalAccessException</code> is thrown if the method is invoked.</p> * * <p><code>MethodUtils</code> contains a workaround for this situation. * It will attempt to call <code>setAccessible</code> on this method. * If this call succeeds, then the method can be invoked as normal. * This call will only succeed when the application has sufficient security privilages. * If this call fails then a warning will be logged and the method may fail.</p> * * @author Craig R. McClanahan * @author Ralph Schaer * @author Chris Audley * @author Rey Fran鏾is * @author Gregor Ra齧an * @author Jan Sorensen * @author Robert Burrell Donkin */public class MethodUtils {    // --------------------------------------------------------- Private Methods    /** Only log warning about accessibility work around once */    private static boolean loggedAccessibleWarning = false;    /** An empty class array */    private static final Class[] emptyClassArray = new Class[0];    /** An empty object array */    private static final Object[] emptyObjectArray = new Object[0];    /**     * Stores a cache of Methods against MethodDescriptors, in a WeakHashMap.     */    private static WeakHashMap cache = new WeakHashMap();    // --------------------------------------------------------- Public Methods    /**     * <p>Invoke a named method whose parameter type matches the object type.</p>     *     * <p>The behaviour of this method is less deterministic     * than {@link #invokeExactMethod}.     * It loops through all methods with names that match     * and then executes the first it finds with compatable parameters.</p>     *     * <p>This method supports calls to methods taking primitive parameters     * via passing in wrapping classes. So, for example, a <code>Boolean</code> class     * would match a <code>boolean</code> primitive.</p>     *     * <p> This is a convenient wrapper for     * {@link #invokeMethod(Object object,String methodName,Object [] args)}.     * </p>     *     * @param object invoke method on this object     * @param methodName get method with this name     * @param arg use this argument     *     * @throws NoSuchMethodException if there is no such accessible method     * @throws InvocationTargetException wraps an exception thrown by the     *  method invoked     * @throws IllegalAccessException if the requested method is not accessible     *  via reflection     */    public static Object invokeMethod(            Object object,            String methodName,            Object arg)            throws            NoSuchMethodException,            IllegalAccessException,            InvocationTargetException {        Object[] args = {arg};        return invokeMethod(object, methodName, args);    }    /**     * <p>Invoke a named method whose parameter type matches the object type.</p>     *     * <p>The behaviour of this method is less deterministic     * than {@link #invokeExactMethod(Object object,String methodName,Object [] args)}.     * It loops through all methods with names that match     * and then executes the first it finds with compatable parameters.</p>     *     * <p>This method supports calls to methods taking primitive parameters     * via passing in wrapping classes. So, for example, a <code>Boolean</code> class     * would match a <code>boolean</code> primitive.</p>     *     * <p> This is a convenient wrapper for     * {@link #invokeMethod(Object, String, Object[], Class[])} } }.     * </p>     *     * @param object invoke method on this object     * @param methodName get method with this name     * @param args use these arguments - treat null as empty array     *     * @throws NoSuchMethodException if there is no such accessible method     * @throws InvocationTargetException wraps an exception thrown by the     *  method invoked     * @throws IllegalAccessException if the requested method is not accessible     *  via reflection     */    public static Object invokeMethod(            Object object,            String methodName,            Object[] args)            throws            NoSuchMethodException,            IllegalAccessException,            InvocationTargetException {        if (args == null) {            args = emptyObjectArray;        }        int arguments = args.length;        Class parameterTypes [] = new Class[arguments];        for (int i = 0; i < arguments; i++) {            parameterTypes[i] = args[i].getClass();        }        return invokeMethod(object, methodName, args, parameterTypes);    }    /**     * <p>Invoke a named method whose parameter type matches the object type.</p>     *     * <p>The behaviour of this method is less deterministic     * than {@link     * #invokeExactMethod(Object object,String methodName,Object [] args,Class[] parameterTypes)}.     * It loops through all methods with names that match     * and then executes the first it finds with compatable parameters.</p>     *     * <p>This method supports calls to methods taking primitive parameters     * via passing in wrapping classes. So, for example, a <code>Boolean</code> class     * would match a <code>boolean</code> primitive.</p>     *     *     * @param object invoke method on this object     * @param methodName get method with this name     * @param args use these arguments - treat null as empty array     * @param parameterTypes match these parameters - treat null as empty array     *     * @throws NoSuchMethodException if there is no such accessible method     * @throws InvocationTargetException wraps an exception thrown by the     *  method invoked     * @throws IllegalAccessException if the requested method is not accessible     *  via reflection     */    public static Object invokeMethod(            Object object,            String methodName,            Object[] args,            Class[] parameterTypes)                throws                    NoSuchMethodException,                    IllegalAccessException,                    InvocationTargetException {        if (parameterTypes == null) {            parameterTypes = emptyClassArray;        }        if (args == null) {            args = emptyObjectArray;        }        Method method = getMatchingAccessibleMethod(                object.getClass(),                methodName,                parameterTypes);        if (method == null)            throw new NoSuchMethodException("No such accessible method: " +                    methodName + "() on object: " + object.getClass().getName());        return method.invoke(object, args);    }    /**     * <p>Invoke a method whose parameter type matches exactly the object     * type.</p>     *     * <p> This is a convenient wrapper for     * {@link #invokeExactMethod(Object object,String methodName,Object [] args)}.     * </p>     *     * @param object invoke method on this object     * @param methodName get method with this name     * @param arg use this argument     *     * @throws NoSuchMethodException if there is no such accessible method     * @throws InvocationTargetException wraps an exception thrown by the     *  method invoked     * @throws IllegalAccessException if the requested method is not accessible     *  via reflection     */    public static Object invokeExactMethod(            Object object,            String methodName,            Object arg)            throws            NoSuchMethodException,            IllegalAccessException,            InvocationTargetException {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区日韩精品| 在线观看视频一区二区| 久久国产麻豆精品| 日本亚洲最大的色成网站www| 香蕉久久夜色精品国产使用方法| 亚洲国产欧美另类丝袜| 亚洲午夜久久久久久久久电影院| 一区二区三区不卡视频在线观看| 亚洲已满18点击进入久久| 一区二区三区加勒比av| 午夜国产不卡在线观看视频| 日本成人在线电影网| 免费一级欧美片在线观看| 久久69国产一区二区蜜臀| 国产福利91精品一区| 99久久99久久精品免费看蜜桃| 91麻豆文化传媒在线观看| 色播五月激情综合网| 欧美午夜影院一区| 欧美一区二区三区在线电影 | 欧美国产在线观看| 国产精品系列在线| 亚洲黄色免费电影| 天堂午夜影视日韩欧美一区二区| 免费成人在线网站| 国产酒店精品激情| 99亚偷拍自图区亚洲| 欧美亚洲另类激情小说| 欧美一个色资源| 国产精品无圣光一区二区| 亚洲最新视频在线观看| 蜜桃av一区二区在线观看| 国产成人综合亚洲91猫咪| 日本韩国精品在线| 欧美一二三在线| 日本一二三不卡| 亚洲国产精品尤物yw在线观看| 蜜桃av一区二区三区电影| 成人不卡免费av| 欧美日韩专区在线| 国产欧美中文在线| 亚洲成人福利片| 国产成人自拍网| 欧美日韩免费观看一区二区三区| 精品国产一区二区三区不卡| 亚洲欧美在线另类| 麻豆精品一区二区av白丝在线| 大陆成人av片| 91精品国产综合久久婷婷香蕉| 日本一区二区三区免费乱视频| 亚洲高清免费观看高清完整版在线观看| 精品制服美女久久| 色94色欧美sute亚洲线路一ni| 欧美tk—视频vk| 亚洲一区二区三区四区五区中文 | 成人a区在线观看| 欧美久久久久中文字幕| 国产欧美视频一区二区| 日韩高清在线电影| 99精品欧美一区| 久久亚洲精华国产精华液| 一区二区三区国产精品| 风流少妇一区二区| 日韩欧美国产1| 亚洲一区欧美一区| 成人一级黄色片| 日韩三级高清在线| 一区二区高清视频在线观看| 国产黄色精品视频| 日韩天堂在线观看| 亚洲一区成人在线| 色综合天天综合给合国产| 欧美精品一区二区三区蜜桃视频 | 久久激情五月婷婷| 欧美日韩夫妻久久| 亚洲精品亚洲人成人网| 成人开心网精品视频| 久久久久国产精品厨房| 日本欧美大码aⅴ在线播放| 欧美综合天天夜夜久久| 最新国产成人在线观看| 粗大黑人巨茎大战欧美成人| 亚洲精品一区在线观看| 久久www免费人成看片高清| 制服丝袜亚洲播放| 午夜视频在线观看一区二区三区| 色综合天天性综合| 亚洲色图色小说| 97精品超碰一区二区三区| 国产精品国产三级国产aⅴ中文| 韩国欧美国产一区| 欧美精品一区二区三区视频| 久久av中文字幕片| 精品入口麻豆88视频| 奇米色777欧美一区二区| 欧美精品三级在线观看| 亚洲国产一区二区a毛片| 欧美三级日韩三级国产三级| 亚洲一区二区三区爽爽爽爽爽| 色婷婷综合久色| 一区二区三区在线免费视频| 91伊人久久大香线蕉| 亚洲少妇中出一区| 色婷婷综合久久久中文字幕| 一二三区精品视频| 欧美午夜电影网| 亚洲chinese男男1069| 欧美福利视频一区| 日本vs亚洲vs韩国一区三区| 欧美一区二区在线播放| 看片网站欧美日韩| 久久久精品国产免大香伊| 国产成a人亚洲精品| 亚洲欧洲精品一区二区三区不卡| 97久久精品人人做人人爽50路| 亚洲精选在线视频| 欧美日韩在线精品一区二区三区激情 | 亚洲欧美日韩人成在线播放| 97se亚洲国产综合自在线| 亚洲一级在线观看| 在线不卡免费av| 国精产品一区一区三区mba视频 | 国产精品久久久久一区二区三区共| 99视频在线精品| 亚洲高清视频的网址| 精品国产污污免费网站入口 | 日韩免费视频线观看| 韩国精品一区二区| 国产精品久久久久久户外露出 | 亚洲黄色免费网站| 8x8x8国产精品| 国产在线精品免费| 国产精品久久久久久久久免费丝袜 | 亚洲欧美国产高清| 337p亚洲精品色噜噜噜| 精品在线观看视频| **性色生活片久久毛片| 欧美日韩国产天堂| 国模大尺度一区二区三区| 综合亚洲深深色噜噜狠狠网站| 欧美日韩成人激情| 国产精品99久久久| 亚洲永久精品大片| 欧美精品一区二区久久久| 色综合久久久久久久久久久| 久久精品国产久精国产爱| 中文字幕一区二区三区精华液| 欧美人伦禁忌dvd放荡欲情| 国产二区国产一区在线观看| 亚洲国产精品一区二区www在线| 精品久久久久久久人人人人传媒| 91视频免费播放| 精品一区二区在线播放| 亚洲日本护士毛茸茸| 日韩精品一区二区三区老鸭窝| av激情综合网| 国内精品视频一区二区三区八戒| 亚洲精选视频免费看| 久久精品一二三| 欧美精品色一区二区三区| 成人av在线观| 久久成人免费日本黄色| 亚洲一区二区精品视频| 国产欧美一区二区三区在线看蜜臀| 欧美日韩一区二区三区高清| 成人黄色大片在线观看| 久久成人免费网| 午夜激情一区二区| 亚洲欧洲一区二区在线播放| 精品av久久707| 欧美人与z0zoxxxx视频| 91视频一区二区三区| 粉嫩欧美一区二区三区高清影视 | 欧美日韩国产美| 91片黄在线观看| 国产成人免费在线视频| 麻豆久久一区二区| 亚洲香肠在线观看| 亚洲欧洲一区二区在线播放| 国产日韩视频一区二区三区| 精品日韩一区二区三区| 91精品国产乱| 91成人在线精品| 色国产综合视频| 91视频免费观看| 99久久久久免费精品国产| 国产成人精品免费在线| 久久激情综合网| 免费不卡在线视频| 天天色综合成人网| 亚洲第一主播视频| 亚洲国产欧美日韩另类综合 | 成人精品一区二区三区中文字幕 | 精品欧美乱码久久久久久 | 一区二区三区中文字幕电影 | 国产一本一道久久香蕉| 精品一区二区三区久久久| 蜜臀91精品一区二区三区| 日韩精品乱码av一区二区| 天堂资源在线中文精品|