?? abstractworkflowfactory.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 + -