public class FlowDefinitionResourceFactory extends Object
| Constructor and Description |
|---|
FlowDefinitionResourceFactory()
Creates a new flow definition resource factory using a default resource loader.
|
FlowDefinitionResourceFactory(org.springframework.core.io.ResourceLoader resourceLoader)
Creates a new flow definition resource factory using the specified resource loader.
|
| Modifier and Type | Method and Description |
|---|---|
FlowDefinitionResource |
createClassPathResource(String path,
Class clazz)
Create a classpath-based resource from the path provided.
|
FlowDefinitionResource |
createFileResource(String path)
Create a file-based based resource from the file path provided.
|
FlowDefinitionResource |
createResource(String path)
Create a flow definition resource from the path location provided.
|
FlowDefinitionResource |
createResource(String path,
AttributeMap attributes)
Create a flow definition resource from the path location provided.
|
FlowDefinitionResource |
createResource(String path,
AttributeMap attributes,
String flowId)
Create a flow definition resource from the path location provided.
|
FlowDefinitionResource[] |
createResources(String pattern,
AttributeMap attributes)
Create an array of flow definition resources from the path pattern location provided.
|
void |
setBasePath(String basePath)
Sets the base removed from the flow path when determining the default flow id.
|
public FlowDefinitionResourceFactory()
public FlowDefinitionResourceFactory(org.springframework.core.io.ResourceLoader resourceLoader)
resourceLoader - the resource loaderpublic void setBasePath(String basePath)
'/WEB-INF' by default
basePath - the flow's base pathpublic FlowDefinitionResource createResource(String path)
path - the encoded Resource path.public FlowDefinitionResource createResource(String path, AttributeMap attributes)
path - the encoded Resource path.attributes - the flow definition meta attributes to configurepublic FlowDefinitionResource createResource(String path, AttributeMap attributes, String flowId)
path - the encoded Resource path.attributes - the flow definition meta attributes to configureflowId - the flow definition id to configurepublic FlowDefinitionResource[] createResources(String pattern, AttributeMap attributes) throws IOException
pattern - the encoded Resource path pattern.attributes - meta attributes to apply to each flow definition resourceIOExceptionpublic FlowDefinitionResource createFileResource(String path)
path - the FileSystemResource pathpublic FlowDefinitionResource createClassPathResource(String path, Class clazz)
path - the ClassPathResource pathclazz - to specify if the path should be relative to another class