org.springframework.webflow.definition.registry
Class FlowDefinitionResource

java.lang.Object
  extended by org.springframework.webflow.definition.registry.FlowDefinitionResource
All Implemented Interfaces:
java.io.Serializable

public class FlowDefinitionResource
extends java.lang.Object
implements java.io.Serializable

A pointer to an externalized flow definition resource. Adds assigned identification information about the resource including the flow id and attributes.

Author:
Keith Donald
See Also:
ExternalizedFlowDefinitionRegistrar, Serialized Form

Constructor Summary
FlowDefinitionResource(org.springframework.core.io.Resource location)
          Creates a new externalized flow definition resource.
FlowDefinitionResource(org.springframework.core.io.Resource location, AttributeMap attributes)
          Creates a new externalized flow definition resource.
FlowDefinitionResource(java.lang.String id, org.springframework.core.io.Resource location)
          Creates a new externalized flow definition.
FlowDefinitionResource(java.lang.String id, org.springframework.core.io.Resource location, AttributeMap attributes)
          Creates a new externalized flow definition.
 
Method Summary
static java.lang.String conventionalFlowId(org.springframework.core.io.Resource location)
          Returns the flow id assigned to the flow definition contained in given resource.
 boolean equals(java.lang.Object o)
           
 AttributeMap getAttributes()
          Returns arbitrary flow definition attributes.
 java.lang.String getId()
          Returns the identifier to assign to the flow definition.
 org.springframework.core.io.Resource getLocation()
          Returns the externalized flow definition resource location.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowDefinitionResource

public FlowDefinitionResource(org.springframework.core.io.Resource location)
Creates a new externalized flow definition resource. The flow id assigned will be the same name as the externalized resource's filename, excluding the extension.

Parameters:
location - the flow resource location

FlowDefinitionResource

public FlowDefinitionResource(org.springframework.core.io.Resource location,
                              AttributeMap attributes)
Creates a new externalized flow definition resource. The flow id assigned will be the same name as the externalized resource's filename, excluding the extension.

Parameters:
location - the flow resource location
attributes - flow definition attributes to be assigned

FlowDefinitionResource

public FlowDefinitionResource(java.lang.String id,
                              org.springframework.core.io.Resource location)
Creates a new externalized flow definition.

Parameters:
id - the flow id to be assigned
location - the flow resource location

FlowDefinitionResource

public FlowDefinitionResource(java.lang.String id,
                              org.springframework.core.io.Resource location,
                              AttributeMap attributes)
Creates a new externalized flow definition.

Parameters:
id - the flow id to be assigned
location - the flow resource location
attributes - flow definition attributes to be assigned
Method Detail

getId

public java.lang.String getId()
Returns the identifier to assign to the flow definition.


getLocation

public org.springframework.core.io.Resource getLocation()
Returns the externalized flow definition resource location.


getAttributes

public AttributeMap getAttributes()
Returns arbitrary flow definition attributes.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

conventionalFlowId

public static java.lang.String conventionalFlowId(org.springframework.core.io.Resource location)
Returns the flow id assigned to the flow definition contained in given resource. By convention this will be the filename of the resource, excluding extension.

Since:
1.0.1
See Also:
FlowDefinitionResource(Resource), FlowDefinitionResource(Resource, AttributeMap)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007. All Rights Reserved.