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

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

?? ruleruntimeimpl.java

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

/*
 * $Id: RuleRuntimeImpl.java,v 1.13 2006/01/16 01:31:22 michaelneale 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.util.List;
import java.util.Map;

import javax.rules.RuleExecutionSetNotFoundException;
import javax.rules.RuleRuntime;
import javax.rules.RuleSession;
import javax.rules.RuleSessionTypeUnsupportedException;

import org.drools.jsr94.rules.admin.RuleExecutionSetRepository;

/**
 * The Drools implementation of the <code>RuleRuntime</code> interface which
 * is the access point for runtime execution of <code>RuleExecutionSet</code>s.
 * It provides methods to create <code>RuleSession</code> implementation as
 * well as methods to retrieve <code>RuleExecutionSet</code>s that have been
 * previously registered using the <code>RuleAdministrator</code>. <p/> The
 * <code>RuleRuntime</code> should be accessed through the
 * <code>RuleServiceProvider</code>. An instance of the
 * <code>RuleRuntime</code> can be retrieved by calling: <p/> <code>
 * RuleServiceProvider ruleServiceProvider =
 *     RuleServiceProvider.newInstance();<br/>
 * RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
 * </code>
 * <p/> Note: the release method must be called on the <code>RuleSession</code>
 * to clean up all resources used by the <code>RuleSession</code>.
 * 
 * @see RuleRuntime
 * @author N. Alex Rupp (n_alex <at>codehaus.org)
 */
public class RuleRuntimeImpl implements RuleRuntime {
	private static final long serialVersionUID = 1L;

	private RuleExecutionSetRepository repository;

	/**
	 * Create a new <code>RuleRuntimeImpl</code>.
	 */
	public RuleRuntimeImpl(RuleExecutionSetRepository repository) {
		this.repository = repository;
		// no special initialization required
	}

	/**
	 * Creates a <code>RuleSession</code> implementation using the supplied
	 * Drools-specific rule execution set registration URI.
	 * 
	 * @param uri
	 *            the URI for the <code>RuleExecutionSet</code>
	 * @param properties
	 *            additional properties used to create the
	 *            <code>RuleSession</code> implementation.
	 * @param ruleSessionType
	 *            the type of rule session to create.
	 * 
	 * @throws RuleSessionTypeUnsupportedException
	 *             if the ruleSessionType is not supported by Drools or the
	 *             RuleExecutionSet
	 * @throws RuleExecutionSetNotFoundException
	 *             if the URI could not be resolved into a
	 *             <code>RuleExecutionSet</code>
	 * 
	 * @return The created <code>RuleSession</code>.
	 */
	public RuleSession createRuleSession(String uri, Map properties,
			int ruleSessionType) throws RuleSessionTypeUnsupportedException,
			RuleExecutionSetNotFoundException {

		if (ruleSessionType == RuleRuntime.STATELESS_SESSION_TYPE) {
			StatelessRuleSessionImpl session = new StatelessRuleSessionImpl(
					uri, properties, repository);
			return session;
		}

		if (ruleSessionType == RuleRuntime.STATEFUL_SESSION_TYPE) {
			StatefulRuleSessionImpl session = new StatefulRuleSessionImpl(uri,
					properties, repository);
			return session;
		}

		throw new RuleSessionTypeUnsupportedException("invalid session type: "
				+ ruleSessionType);
	}

	/**
	 * Retrieves a <code>List</code> of the URIs that currently have
	 * <code>RuleExecutionSet</code>s associated with them. An empty list is
	 * returned is there are no associations.
	 * 
	 * @return a <code>List</code> of <code>String</code>s (URIs)
	 */
	public List getRegistrations() {
		return repository.getRegistrations();
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久久久久无| 欧美日韩成人综合| 免费精品视频在线| 日韩—二三区免费观看av| 亚洲一级片在线观看| 亚洲午夜免费视频| 丝袜诱惑亚洲看片| 久久99久久99小草精品免视看| 丝袜美腿亚洲色图| 另类小说欧美激情| 精品在线观看免费| 成人免费av网站| 91视频免费观看| 欧美网站大全在线观看| 欧美一区午夜视频在线观看| 日韩一二在线观看| 欧美国产97人人爽人人喊| 国产精品对白交换视频| 亚洲精品成人在线| 热久久一区二区| 久草精品在线观看| 99久久精品一区| 欧美乱妇20p| 久久久久久久久一| 夜夜爽夜夜爽精品视频| 日韩va亚洲va欧美va久久| 国产一区二区三区四| 成人福利视频网站| 91.麻豆视频| 国产精品久久久久久亚洲毛片| 亚洲精品视频自拍| 国产综合久久久久久鬼色| 99国产精品一区| 日韩一级片在线播放| 亚洲人成小说网站色在线 | 美女精品自拍一二三四| 国产高清不卡一区二区| 欧美午夜影院一区| 久久精品亚洲乱码伦伦中文| 亚洲综合视频网| 狠狠色综合色综合网络| 91日韩在线专区| 久热成人在线视频| 色网综合在线观看| 精品国产91乱码一区二区三区| 亚洲视频在线观看三级| 男女性色大片免费观看一区二区| 波多野结衣亚洲| 精品捆绑美女sm三区| 一区二区激情视频| 成人污污视频在线观看| 精品久久久久香蕉网| 亚洲福利一区二区三区| aaa亚洲精品| 久久精品人人爽人人爽| 蜜臀av性久久久久蜜臀av麻豆 | 中文字幕成人网| 日韩中文欧美在线| 色94色欧美sute亚洲线路一久| 精品国产伦一区二区三区观看体验| 亚洲综合色自拍一区| 91亚洲精品久久久蜜桃网站| 国产精品天干天干在线综合| 极品销魂美女一区二区三区| 欧美肥妇free| 午夜欧美电影在线观看| 欧美性猛交xxxx黑人交| 一区二区三区四区av| av网站免费线看精品| 中文字幕 久热精品 视频在线| 韩国av一区二区三区| 日韩亚洲国产中文字幕欧美| 天堂va蜜桃一区二区三区漫画版| 91黄色免费网站| 一级做a爱片久久| 91久久人澡人人添人人爽欧美| 日韩久久一区二区| 91久久奴性调教| 亚洲在线视频免费观看| 欧美亚洲免费在线一区| 亚洲国产wwwccc36天堂| 欧美日韩成人综合天天影院| 亚洲永久精品国产| 欧美三级在线视频| 日韩高清在线观看| 日韩免费看网站| 国产伦精品一区二区三区在线观看| 精品日韩一区二区| 国产精品一二三四| 欧美国产97人人爽人人喊| 91在线观看美女| 亚洲第一二三四区| 久久这里只有精品首页| 国产不卡在线一区| 亚洲精品中文在线| 日韩午夜在线影院| 粉嫩aⅴ一区二区三区四区五区| 中文字幕一区在线观看| 欧美性生活影院| 久久99热99| 亚洲日本青草视频在线怡红院| 欧美日韩亚洲综合一区 | 久久久久久免费| 99riav久久精品riav| 午夜精品福利在线| 久久久不卡影院| 欧美日韩精品一区二区三区| 久久机这里只有精品| 18欧美亚洲精品| 日韩一区二区三区视频| 97久久超碰国产精品电影| 丝袜脚交一区二区| 中文一区二区完整视频在线观看| 欧美在线免费播放| 国产精品888| 日韩av一二三| 亚洲色图丝袜美腿| 欧美精品一区二区久久久| 91国产免费看| 欧美日韩在线播放三区四区| 青青草91视频| 亚洲另类中文字| 久久久99免费| 欧美日韩黄视频| 99久精品国产| 国产麻豆视频精品| 日韩av电影免费观看高清完整版| 国产精品对白交换视频| 亚洲精品一区二区三区99| 欧美日韩在线播| aaa国产一区| 国产成人在线观看| 美女精品自拍一二三四| 亚洲国产成人av网| 亚洲精品亚洲人成人网在线播放| 国产亚洲精品中文字幕| 欧美一区二区三区四区高清| 欧美综合视频在线观看| 成人黄色小视频| 高清国产一区二区三区| 国产一区二区91| 韩国欧美国产1区| 美女视频免费一区| 麻豆成人91精品二区三区| 亚洲成人手机在线| 亚洲va国产va欧美va观看| 亚洲精品高清在线观看| 亚洲精品国产高清久久伦理二区| 国产精品乱人伦中文| 国产精品情趣视频| 国产精品成人一区二区艾草 | av一二三不卡影片| a在线欧美一区| 成人高清视频在线| 色综合久久久久综合| 色综合久久天天| 最新高清无码专区| 国产精品激情偷乱一区二区∴| 国产色综合一区| 国产精品久久久久久久久动漫| 国产精品无圣光一区二区| 国产精品九色蝌蚪自拍| 亚洲私人影院在线观看| 亚洲综合激情另类小说区| 亚洲丶国产丶欧美一区二区三区| 亚洲成人免费在线| 麻豆精品一区二区| 国产一二三精品| 91丨porny丨国产入口| 91福利视频在线| 日韩欧美国产综合在线一区二区三区| 日韩亚洲欧美在线| 日本一区二区视频在线| 中文字幕亚洲综合久久菠萝蜜| 亚洲一区二区三区四区不卡| 欧美a级理论片| 成人免费视频一区| 欧美在线观看你懂的| 日韩欧美色综合| 国产欧美日韩在线观看| 亚洲综合色噜噜狠狠| 麻豆国产欧美一区二区三区| 国产99精品国产| 日本黄色一区二区| 日韩欧美另类在线| 国产精品久久三| 日本一不卡视频| 粉嫩一区二区三区性色av| 欧美日韩成人综合天天影院| 精品国免费一区二区三区| 《视频一区视频二区| 日韩电影免费在线| 成人激情午夜影院| 日韩一级二级三级精品视频| 国产精品成人免费精品自在线观看 | 精品国产髙清在线看国产毛片| 国产欧美日本一区二区三区| 亚洲香蕉伊在人在线观| 国产成人精品免费看| 欧美日韩mp4|