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

📄 abstractworkflowfactory.java

📁 一个很好实用的工作流OSWORKFLOW开发例子.有着非常优秀的灵活性.
💻 JAVA
字号:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.loader;import com.opensymphony.workflow.FactoryException;import java.util.Properties;/** * Abstract base class for all workflow factories. * A workflow factory is a factory class that is able * to provide workflow descriptors given a workflow name, * as well as save descriptors. * * @author Hani Suleiman * Date: May 10, 2002 * Time: 11:17:06 AM */public abstract class AbstractWorkflowFactory implements WorkflowFactory {    //~ Instance fields ////////////////////////////////////////////////////////    protected Properties properties = new Properties();    //~ Methods ////////////////////////////////////////////////////////////////    /**       * Get the configuration properties of this factory       */    public Properties getProperties() {        return properties;    }    public final void init(Properties p) {        this.properties = p;    }    /**     * Get a workflow descriptor given a workflow name.     * @param name The name of the workflow to get.     * @return The descriptor for the specified workflow.     * @throws FactoryException if the specified workflow name does not exist or cannot be located.     *     */    public WorkflowDescriptor getWorkflow(String name) throws FactoryException {        return getWorkflow(name, true);    }    /**       * Invoked after the properties of the factory have been set.       * Subclasses should override this method and add any specific       * setup code required. For example, connecting to an external resource       * or database.       * @throws FactoryException if there was an error during initialization.       */    public void initDone() throws FactoryException {    }}

⌨️ 快捷键说明

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