|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.workflow.config.DefaultConfiguration
public class DefaultConfiguration
Default implementation for a configuration object.
This configuration object is passed to the Workflow.setConfiguration(Configuration)
method. If the configuration is not initialized, the load(java.net.URL) method will be called by
the workflow. Alternatively, the caller can explicitly load the configuration by calling that method before
calling Workflow.setConfiguration(Configuration).
The loading behaviour comes into play when specifying a configuration remotely, for example in an EJB environment. It might be desirable to ensure that the configuration is loaded from within the EJB server, rather than in the calling client.
| Field Summary | |
|---|---|
static DefaultConfiguration |
INSTANCE
|
| Constructor Summary | |
|---|---|
DefaultConfiguration()
|
|
| Method Summary | |
|---|---|
protected InputStream |
getInputStream(URL url)
Load the default configuration from the current context classloader. |
String |
getPersistence()
Get the fully qualified class name of the persistence store. |
Map |
getPersistenceArgs()
Get the persistence args for the persistence store. |
VariableResolver |
getVariableResolver()
Return the resolver to use for all variables specified in scripts |
WorkflowDescriptor |
getWorkflow(String name)
Get the named workflow descriptor. |
String[] |
getWorkflowNames()
Get a list of all available workflow descriptor names. |
WorkflowStore |
getWorkflowStore()
|
boolean |
isInitialized()
|
boolean |
isModifiable(String name)
Check if a particular workflow can be modified or not. |
void |
load(URL url)
Load the specified configuration file. |
boolean |
removeWorkflow(String workflow)
Remove the specified workflow. |
boolean |
saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace)
|
void |
setPersistence(String persistence)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DefaultConfiguration INSTANCE
| Constructor Detail |
|---|
public DefaultConfiguration()
| Method Detail |
|---|
public boolean isInitialized()
isInitialized in interface ConfigurationConfiguration.load(java.net.URL)
will be called.public boolean isModifiable(String name)
Configuration
isModifiable in interface Configurationname - The workflow name.
public void setPersistence(String persistence)
public String getPersistence()
Configuration
getPersistence in interface Configurationpublic Map getPersistenceArgs()
Configuration
getPersistenceArgs in interface Configurationpublic VariableResolver getVariableResolver()
Configuration
getVariableResolver in interface Configuration
public WorkflowDescriptor getWorkflow(String name)
throws FactoryException
Configuration
getWorkflow in interface Configurationname - the workflow name
FactoryException - if there was an error looking up the descriptor or if it could not be found.
public String[] getWorkflowNames()
throws FactoryException
Configuration
getWorkflowNames in interface ConfigurationFactoryException - if the underlying factory does not support this method
or if there was an error looking up workflow names.
public WorkflowStore getWorkflowStore()
throws StoreException
getWorkflowStore in interface ConfigurationStoreException
public void load(URL url)
throws FactoryException
Configuration
load in interface Configurationurl - url to the configuration file.
FactoryException
public boolean removeWorkflow(String workflow)
throws FactoryException
Configuration
removeWorkflow in interface Configurationworkflow - The workflow name of the workflow to remove.
FactoryException - If the underlying workflow factory has an error removing the workflow,
or if it does not support the removal of workflows.
public boolean saveWorkflow(String name,
WorkflowDescriptor descriptor,
boolean replace)
throws FactoryException
saveWorkflow in interface ConfigurationFactoryExceptionprotected InputStream getInputStream(URL url)
|
OpenSymphony Workflow Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||