Class BaseActionFactory<ActionType extends LiveAction>

java.lang.Object
com.day.cq.wcm.msm.commons.BaseActionFactory<ActionType>
Type Parameters:
ActionType - Type casting ActionType which extends LiveAction
All Implemented Interfaces:
LiveActionFactory<ActionType>
Direct Known Subclasses:
FilteredActionFactoryBase

public abstract class BaseActionFactory<ActionType extends LiveAction> extends Object implements LiveActionFactory<ActionType>
Base implementation of a LiveActionFactory service
  • Constructor Details

    • BaseActionFactory

      public BaseActionFactory()
  • Method Details

    • createAction

      public ActionType createAction(Resource resource) throws WCMException
      Creates an action using the newActionInstance(ValueMap) method. The configuration passed to that method consists of the default configuration returned by getFactoryConfig(), overlayed by the properties on the given resource.
      Specified by:
      createAction in interface LiveActionFactory<ActionType extends LiveAction>
      Parameters:
      resource - containing configuration values
      Returns:
      a new action instance
      Throws:
      WCMException - in case of error