org.springframework.webflow.definition.registry
Class StaticFlowDefinitionHolder

java.lang.Object
  extended by org.springframework.webflow.definition.registry.StaticFlowDefinitionHolder
All Implemented Interfaces:
FlowDefinitionHolder

public final class StaticFlowDefinitionHolder
extends java.lang.Object
implements FlowDefinitionHolder

A simple flow definition holder that just holds a constant singleton reference to a flow definition.

Author:
Keith Donald

Constructor Summary
StaticFlowDefinitionHolder(FlowDefinition flowDefinition)
          Creates the static flow definition holder.
 
Method Summary
 FlowDefinition getFlowDefinition()
          Returns the flow definition held by this holder.
 java.lang.String getFlowDefinitionId()
          Returns the id of the flow definition held by this holder.
 void refresh()
          Refresh the flow definition held by this holder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticFlowDefinitionHolder

public StaticFlowDefinitionHolder(FlowDefinition flowDefinition)
Creates the static flow definition holder.

Parameters:
flowDefinition - the flow to hold
Method Detail

getFlowDefinitionId

public java.lang.String getFlowDefinitionId()
Description copied from interface: FlowDefinitionHolder
Returns the id of the flow definition held by this holder. This is a lightweight method callers may call to obtain the id of the flow without triggering full flow definition assembly (which may be an expensive operation).

Specified by:
getFlowDefinitionId in interface FlowDefinitionHolder

getFlowDefinition

public FlowDefinition getFlowDefinition()
Description copied from interface: FlowDefinitionHolder
Returns the flow definition held by this holder. Calling this method the first time may trigger flow assembly (which may be expensive).

Specified by:
getFlowDefinition in interface FlowDefinitionHolder

refresh

public void refresh()
Description copied from interface: FlowDefinitionHolder
Refresh the flow definition held by this holder. Calling this method typically triggers flow reassembly, which may include a refresh from an externalized resource such as a file.

Specified by:
refresh in interface FlowDefinitionHolder


Copyright © 2004-2007. All Rights Reserved.