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

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

public class ClassActionLocator
extends AbstractActionLocator

ActionLocator that loads actions based on a naming convention; if the action name is prefixed with class: and the rest of the action name is a java class that implements the Action interface , an Action from this class will be created.

Author:
Dolf Dijkstra

Constructor Summary
ClassActionLocator()
           
ClassActionLocator(ActionLocator fallbackActionLocator, Injector injector)
           
 
Method Summary
protected  Action doFindAction(COM.FutureTense.Interfaces.ICS ics, String name)
          Template Method for finding the Action for the custom ActionLocator.
 
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

ClassActionLocator

public ClassActionLocator(ActionLocator fallbackActionLocator,
                          Injector injector)

ClassActionLocator

public ClassActionLocator()
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.


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