⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 workflowclosure.java

📁 一个很好的微工作流内核
💻 JAVA
字号:
/* * 	  *  Copyright (c) 2003 Dragos Manolescu (dam@micro-workflow.com) *  *  See the LICENSE file for licensing information. */package com.microworkflow.execution;import java.util.logging.Logger;import com.microworkflow.process.WorkflowContext;/** * This class provides a means to access the WorkflowContext from a closure without * explicitly passing it as an argument. *    * @author Dragos Manolescu (dam@micro-workflow.com) */public abstract class WorkflowClosure extends Object {	protected WorkflowContext context;	protected static Logger logger = Logger.getLogger("com.microworkflow.execution.WorkflowContext");;	public WorkflowContext getContext() {		return context;	}	public void setContext(WorkflowContext context) {		this.context = context;	}	protected Object get(String aKey) {		if (!context.containsKey(aKey)) {			logger.severe("Key " + aKey + " not found");		}		return context.get(aKey);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -