com.fatwire.gst.foundation.controller.action.support
Class MapActionLocator

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.action.support.AbstractActionLocator
      extended by com.fatwire.gst.foundation.controller.action.support.BaseActionLocator
          extended by com.fatwire.gst.foundation.controller.action.support.MapActionLocator
All Implemented Interfaces:
ActionLocator
Direct Known Subclasses:
CommandActionLocator

public class MapActionLocator
extends BaseActionLocator

ActionLocator that holds a Map with the Actions. The 'name' is keyed to a map that holds the Actions in a key/value pair.

Since:
2011-03-15
Author:
Tony Field, Dolf Dijkstra

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
MapActionLocator()
           
 
Method Summary
protected  Action doFindAction(COM.FutureTense.Interfaces.ICS ics, String name)
          Template Method for finding the Action for the custom ActionLocator.
 void setActionMap(Map<String,Action> map)
           
 
Methods inherited from class com.fatwire.gst.foundation.controller.action.support.BaseActionLocator
setFactoryClassname
 
Methods inherited from class com.fatwire.gst.foundation.controller.action.support.AbstractActionLocator
getAction, getFallbackActionLocator, getInjector, injectDependencies, setFallbackActionLocator, setInjector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

MapActionLocator

public MapActionLocator()
Method Detail

setActionMap

public void setActionMap(Map<String,Action> map)

doFindAction

protected Action doFindAction(COM.FutureTense.Interfaces.ICS ics,
                              String name)
Description copied from class: AbstractActionLocator
Template Method for finding the Action for the custom ActionLocator. In case the Action is created through this method, it is expected to be fully injected and ready to use.

Specified by:
doFindAction in class AbstractActionLocator
Parameters:
ics - the Content Server context
name - the name of the action
Returns:
the Action if found, null is valid.


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.