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

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

?? localruleexecutionsetproviderimpl.java

?? drools 一個開放源碼的規則引擎
?? JAVA
字號:
package org.drools.jsr94.rules.admin;

/*
 * $Id: LocalRuleExecutionSetProviderImpl.java,v 1.21 2005/11/25 02:11:34 mproctor Exp $
 *
 * Copyright 2002-2004 (C) The Werken Company. All Rights Reserved.
 *
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided that the
 * following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright statements and
 * notices. Redistributions must also contain a copy of this document.
 *
 * 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 name "drools" must not be used to endorse or promote products derived
 * from this Software without prior written permission of The Werken Company.
 * For written permission, please contact bob@werken.com.
 *
 * 4. Products derived from this Software may not be called "drools" nor may
 * "drools" appear in their names without prior written permission of The Werken
 * Company. "drools" is a registered trademark of The Werken Company.
 *
 * 5. Due credit should be given to The Werken Company.
 * (http://drools.werken.com/).
 *
 * THIS SOFTWARE IS PROVIDED BY THE WERKEN COMPANY AND CONTRIBUTORS ``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 WERKEN COMPANY 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.
 *
 */

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.util.Map;

import javax.rules.admin.LocalRuleExecutionSetProvider;
import javax.rules.admin.RuleExecutionSet;
import javax.rules.admin.RuleExecutionSetCreateException;

import org.drools.IntegrationException;
import org.drools.io.RuleSetReader;
import org.drools.rule.RuleSet;
import org.xml.sax.SAXException;

/**
 * The Drools implementation of the <code>LocalRuleExecutionSetProvider</code>
 * interface which defines <code>RuleExecutionSet</code> creation methods for
 * defining <code>RuleExecutionSet</code>s from local (non-serializable)
 * resources.
 *
 * @see LocalRuleExecutionSetProvider
 *
 * @author N. Alex Rupp (n_alex <at>codehaus.org)
 * @author <a href="mailto:thomas.diesler@softcon-itec.de">thomas diesler </a>
 */
public class LocalRuleExecutionSetProviderImpl
    implements LocalRuleExecutionSetProvider
{
    /** Default constructor. */
    public LocalRuleExecutionSetProviderImpl( )
    {
        super( );
    }

    /**
     * Creates a <code>RuleExecutionSet</code> implementation using a
     * supplied input stream and additional Drools-specific properties.
     * A Drools-specific rule execution set is read from the supplied
     * InputStream. The method <code>createRuleExecutionSet</code> taking
     * a Reader instance should be used if the source is a character
     * stream and encoding conversion should be performed.
     *
     * @param ruleExecutionSetStream
     *        an input stream used to read the rule execution set.
     * @param properties additional properties used to create the
     *        <code>RuleExecutionSet</code> implementation.
     *        May be <code>null</code>.
     *
     * @throws RuleExecutionSetCreateException
     *         on rule execution set creation error.
     *
     * @return The created <code>RuleExecutionSet</code>.
     */
    public RuleExecutionSet createRuleExecutionSet(
            InputStream ruleExecutionSetStream, Map properties )
        throws RuleExecutionSetCreateException
    {
        try
        {
            RuleSetReader setReader = new RuleSetReader( );
            RuleSet ruleSet = setReader.read( ruleExecutionSetStream );
            return this.createRuleExecutionSet( ruleSet, properties );
        }
        catch ( SAXException e )
        {
            throw new RuleExecutionSetCreateException(
                "cannot create rule set", e );
        }
        catch ( IOException e )
        {
            throw new RuleExecutionSetCreateException(
                "cannot create rule set", e );
        }
    }

    /**
     * Creates a <code>RuleExecutionSet</code> implementation using a supplied
     * character stream Reader and additional Drools-specific properties. A
     * Drools-specific rule execution set is read from the supplied Reader.
     *
     * @param ruleExecutionSetReader
     *        a Reader used to read the rule execution set.
     * @param properties additional properties used to create the
     *        <code>RuleExecutionSet</code> implementation.
     *        May be <code>null</code>.
     *
     * @throws RuleExecutionSetCreateException
     *         on rule execution set creation error.
     *
     * @return The created <code>RuleExecutionSet</code>.
     */
    public RuleExecutionSet createRuleExecutionSet(
            Reader ruleExecutionSetReader, Map properties )
        throws RuleExecutionSetCreateException
    {
        try
        {
            RuleSetReader setReader = new RuleSetReader( );
            RuleSet ruleSet = setReader.read( ruleExecutionSetReader );
            return this.createRuleExecutionSet( ruleSet, properties );
        }
        catch ( SAXException e )
        {
            throw new RuleExecutionSetCreateException(
                "cannot create rule set", e );
        }
        catch ( IOException e )
        {
            throw new RuleExecutionSetCreateException(
                "cannot create rule set", e );
        }
    }

    /**
     * Creates a <code>RuleExecutionSet</code> implementation from a
     * Drools-specific AST representation and Drools-specific properties.
     *
     * @param ruleExecutionSetAst
     *        the vendor representation of a rule execution set
     * @param properties additional properties used to create the
     *        <code>RuleExecutionSet</code> implementation.
     *        May be <code>null</code>.
     *
     * @throws RuleExecutionSetCreateException
     *         on rule execution set creation error.
     *
     * @return The created <code>RuleExecutionSet</code>.
     */
    public RuleExecutionSet createRuleExecutionSet(
            Object ruleExecutionSetAst, Map properties )
        throws RuleExecutionSetCreateException
    {
        if ( ruleExecutionSetAst instanceof RuleSet )
        {
            RuleSet ruleSet = ( RuleSet ) ruleExecutionSetAst;
            return this.createRuleExecutionSet( ruleSet, properties );
        }
        throw new RuleExecutionSetCreateException(
            " Incoming AST object must be an org.drools.rule.RuleSet.  Was "
            + ruleExecutionSetAst.getClass( ) );
    }

    /**
     * Creates a <code>RuleExecutionSet</code> implementation from a
     * <code>RuleSet</code> and Drools-specific properties.
     *
     * @param ruleSet a Drools <code>org.drools.rule.RuleSet</code>
     *        representation of a rule execution set.
     * @param properties additional properties used to create the
     *        RuleExecutionSet implementation. May be <code>null</code>.
     *
     * @throws RuleExecutionSetCreateException
     *         on rule execution set creation error.
     *
     * @return The created <code>RuleExecutionSet</code>.
     */
    private RuleExecutionSet createRuleExecutionSet(
            RuleSet ruleSet, Map properties )
        throws RuleExecutionSetCreateException
    {
        try
        {
            return new RuleExecutionSetImpl( ruleSet, properties );
        }
        catch ( IntegrationException e )
        {
            throw new RuleExecutionSetCreateException(
                "Failed to create RuleExecutionSet", e );
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区视频免费| 三级亚洲高清视频| 国产高清不卡二三区| 精品1区2区在线观看| 国产自产视频一区二区三区| 精品三级av在线| 日本va欧美va精品发布| 91麻豆精品国产| 视频一区欧美精品| 欧美日韩亚洲综合一区二区三区| 亚洲欧美区自拍先锋| 丁香五精品蜜臀久久久久99网站| 精品国产电影一区二区| 亚洲亚洲精品在线观看| 97久久精品人人澡人人爽| 久久青草国产手机看片福利盒子| 久热成人在线视频| 欧美一区二区在线视频| 秋霞成人午夜伦在线观看| 欧美精品在线观看播放| 日韩一区精品字幕| 亚洲视频免费观看| 99久久99久久精品免费观看| 国产精品护士白丝一区av| 波波电影院一区二区三区| 亚洲国产精品激情在线观看| 国产成人8x视频一区二区| 中文字幕av一区二区三区高| 成人黄色小视频在线观看| 中文字幕永久在线不卡| 色欧美88888久久久久久影院| 亚洲精品第一国产综合野| 欧美最猛性xxxxx直播| 久久黄色级2电影| 中文字幕不卡在线播放| 国产黄人亚洲片| 亚洲精品老司机| 91麻豆精品国产91久久久久久久久| 国产精品一区二区x88av| 国产欧美日韩另类一区| 91小视频免费看| 三级久久三级久久久| 欧美精品一区在线观看| 国产一区美女在线| 亚洲资源中文字幕| 欧美xxxxx牲另类人与| 成人精品一区二区三区中文字幕| 中文字幕在线视频一区| 欧美日本国产视频| 激情小说亚洲一区| 国产a区久久久| 一区二区三区精品| 精品免费国产一区二区三区四区| 国产激情一区二区三区桃花岛亚洲| 国产精品久久久久影视| 欧美视频一区二区在线观看| 久久se精品一区二区| 综合色中文字幕| 精品奇米国产一区二区三区| heyzo一本久久综合| 日本不卡的三区四区五区| 日韩久久精品一区| 成人av高清在线| 美国三级日本三级久久99 | 国产欧美一区二区精品秋霞影院 | 国产亚洲自拍一区| 在线看国产一区| 国产成人精品午夜视频免费| 亚洲另类中文字| 欧美视频三区在线播放| 99这里只有久久精品视频| 久久99久久精品| 亚洲综合色自拍一区| 亚洲国产高清不卡| 日韩一区二区精品| 99re在线精品| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲一区二区高清| 亚洲色图视频免费播放| 久久先锋影音av鲁色资源网| 欧美男生操女生| 色女孩综合影院| 不卡在线观看av| 国产伦精品一区二区三区免费| 亚洲女同女同女同女同女同69| 日韩欧美电影一二三| 欧美乱妇一区二区三区不卡视频| 99久久精品国产一区| 国产精品一区二区三区99| 丝袜脚交一区二区| 亚洲国产精品一区二区久久恐怖片| 日韩精品一区二区在线| 欧美精品在线观看播放| 欧美亚洲一区二区在线观看| 成人毛片视频在线观看| 国产成人免费高清| 国产精品中文欧美| 国产美女久久久久| 国产乱妇无码大片在线观看| 久久99国产精品免费网站| 美腿丝袜亚洲色图| 日韩国产高清在线| 日本欧美一区二区三区| 石原莉奈在线亚洲二区| 一区二区三区中文在线| 国产精品美女久久久久高潮| 中文字幕亚洲在| 中文字幕亚洲精品在线观看| 国产精品乱码人人做人人爱| 欧美国产精品中文字幕| 国产精品视频线看| 中文av一区特黄| 中文字幕一区二区视频| 亚洲视频网在线直播| 亚洲中国最大av网站| 午夜天堂影视香蕉久久| 日韩电影一区二区三区四区| 青青国产91久久久久久| 久久99精品久久久久久久久久久久 | 国产精品国产精品国产专区不片| 久久众筹精品私拍模特| 国产日韩影视精品| 亚洲综合丁香婷婷六月香| 偷拍与自拍一区| 久久99精品网久久| 91丨porny丨中文| 欧美三级电影在线看| 欧美一级精品大片| ...xxx性欧美| 亚洲综合色婷婷| 国产高清久久久久| 色诱视频网站一区| 欧美一区二区三区视频在线 | 久久国产精品无码网站| 国产制服丝袜一区| 91免费观看国产| 91精品免费在线| 国产亚洲成aⅴ人片在线观看| 国产精品久久看| 亚洲福利视频导航| 欧美一区二区三区的| 久久精品一二三| 亚洲精品免费电影| 激情六月婷婷综合| 色婷婷国产精品| 欧美成人高清电影在线| 国产日韩av一区| 亚洲一区在线观看免费观看电影高清 | 亚洲精品一区二区三区四区高清| 亚洲欧洲国产日本综合| 日本不卡免费在线视频| 99久久精品免费看| 欧美大片日本大片免费观看| 亚洲丝袜制服诱惑| 久久国产剧场电影| 在线观看三级视频欧美| 久久你懂得1024| 五月天欧美精品| 成人av午夜电影| 精品国精品国产尤物美女| 国产精品天干天干在线综合| 亚洲日韩欧美一区二区在线| 国产91高潮流白浆在线麻豆| 欧美人伦禁忌dvd放荡欲情| 国产精品乱人伦一区二区| 奇米影视一区二区三区| 在线亚洲一区观看| 国产日韩精品一区二区三区在线| 午夜精品视频在线观看| 99久久免费视频.com| xnxx国产精品| 男女激情视频一区| 欧美午夜片在线观看| 国产精品久久久久永久免费观看| 经典三级在线一区| 欧美老女人第四色| 成人欧美一区二区三区小说 | 日韩成人午夜精品| 一本到一区二区三区| 亚洲视频一区二区免费在线观看| 国产精品乡下勾搭老头1| 精品国产一区二区亚洲人成毛片 | 精品久久久久久最新网址| 美腿丝袜亚洲色图| 91精品国产品国语在线不卡| 亚洲精品免费视频| 国产精品乱码一区二三区小蝌蚪| 精品在线一区二区| 精品日韩av一区二区| 日本va欧美va精品| 7777精品伊人久久久大香线蕉经典版下载 | 麻豆精品一区二区| 欧美午夜精品一区二区三区| 亚洲精品大片www| 一本大道av一区二区在线播放| 国产精品久久久久一区二区三区共| 国产精品一区二区你懂的| 国产亚洲精品资源在线26u| 国产一区二区三区蝌蚪| 久久亚洲一区二区三区明星换脸|