|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.config.FlowDefinitionResourceFactory
public class FlowDefinitionResourceFactory
A factory for creating flow definition resources that serve as pointers to external Flow definition files.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
FlowDefinitionResource |
createClassPathResource(java.lang.String path,
java.lang.Class<?> clazz)
Create a classpath-based resource from the path provided. |
FlowDefinitionResource |
createFileResource(java.lang.String path)
Create a file-based based resource from the file path provided. |
FlowDefinitionResource |
createResource(java.lang.String path)
Create a flow definition resource from the path location provided. |
FlowDefinitionResource |
createResource(java.lang.String path,
AttributeMap<java.lang.Object> attributes)
Create a flow definition resource from the path location provided. |
FlowDefinitionResource |
createResource(java.lang.String path,
AttributeMap<java.lang.Object> attributes,
java.lang.String flowId)
Create a flow definition resource from the path location provided. |
FlowDefinitionResource[] |
createResources(java.lang.String pattern,
AttributeMap<java.lang.Object> attributes)
Create an array of flow definition resources from the path pattern location provided. |
protected java.lang.String |
getFlowId(org.springframework.core.io.Resource flowResource)
Obtains the flow id from the flow resource. |
void |
setBasePath(java.lang.String basePath)
Sets the base removed from the flow path when determining the default flow id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowDefinitionResourceFactory()
public FlowDefinitionResourceFactory(org.springframework.core.io.ResourceLoader resourceLoader)
resourceLoader
- the resource loaderMethod Detail |
---|
public void setBasePath(java.lang.String basePath)
'/WEB-INF' by default
basePath
- the flow's base pathpublic FlowDefinitionResource createResource(java.lang.String path)
path
- the encoded Resource
path.
public FlowDefinitionResource createResource(java.lang.String path, AttributeMap<java.lang.Object> attributes)
path
- the encoded Resource
path.attributes
- the flow definition meta attributes to configure
public FlowDefinitionResource createResource(java.lang.String path, AttributeMap<java.lang.Object> attributes, java.lang.String flowId)
path
- the encoded Resource
path.attributes
- the flow definition meta attributes to configureflowId
- the flow definition id to configure
public FlowDefinitionResource[] createResources(java.lang.String pattern, AttributeMap<java.lang.Object> attributes) throws java.io.IOException
pattern
- the encoded Resource
path pattern.attributes
- meta attributes to apply to each flow definition resource
java.io.IOException
public FlowDefinitionResource createFileResource(java.lang.String path)
path
- the FileSystemResource
path
public FlowDefinitionResource createClassPathResource(java.lang.String path, java.lang.Class<?> clazz)
path
- the ClassPathResource
pathclazz
- to specify if the path should be relative to another class
protected java.lang.String getFlowId(org.springframework.core.io.Resource flowResource)
For example, '${basePath}/booking.xml' becomes 'booking' and '${basePath}/hotels/booking/booking.xml' becomes 'hotels/booking'
flowResource
- the flow resource
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |