abstractworkflowfactory.java

来自「Java编译osworkflow工作流系统的安装和源代码」· Java 代码 · 共 61 行

JAVA
61
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?