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

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.action.support.AbstractActionLocator
      extended by com.fatwire.gst.foundation.controller.action.support.SingleActionLocator
All Implemented Interfaces:
ActionLocator

public class SingleActionLocator
extends AbstractActionLocator

Class that provides access to a single action, ie the name is ignored and it will always return the same new Action, from the actionClass field.

Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from class com.fatwire.gst.foundation.controller.action.support.AbstractActionLocator
LOG
 
Constructor Summary
SingleActionLocator()
           
SingleActionLocator(Injector injector, String actionClass)
           
 
Method Summary
protected  Action doFindAction(COM.FutureTense.Interfaces.ICS ics, String name)
          Template Method for finding the Action for the custom ActionLocator.
 Class<Action> getActionClass()
           
 void setActionClass(String actionClass)
           
 
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
 

Constructor Detail

SingleActionLocator

public SingleActionLocator()

SingleActionLocator

public SingleActionLocator(Injector injector,
                           String actionClass)
Method Detail

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.

getActionClass

public Class<Action> getActionClass()

setActionClass

public void setActionClass(String actionClass)


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