Package com.day.cq.wcm.msm.commons
Class BaseActionFactory<ActionType extends LiveAction>
- java.lang.Object
-
- com.day.cq.wcm.msm.commons.BaseActionFactory<ActionType>
-
- Type Parameters:
ActionType- Type casting ActionType which extendsLiveAction
- All Implemented Interfaces:
LiveActionFactory<ActionType>
- Direct Known Subclasses:
FilteredActionFactoryBase
public abstract class BaseActionFactory<ActionType extends LiveAction> extends java.lang.Object implements LiveActionFactory<ActionType>
Base implementation of aLiveActionFactoryservice
-
-
Field Summary
-
Fields inherited from interface com.day.cq.wcm.msm.api.LiveActionFactory
LIVE_ACTION_NAME
-
-
Constructor Summary
Constructors Constructor Description BaseActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionTypecreateAction(Resource resource)Creates an action using thenewActionInstance(ValueMap)method.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.day.cq.wcm.msm.api.LiveActionFactory
createsAction
-
-
-
-
Method Detail
-
createAction
public ActionType createAction(Resource resource) throws WCMException
Creates an action using thenewActionInstance(ValueMap)method. The configuration passed to that method consists of the default configuration returned bygetFactoryConfig(), overlayed by the properties on the given resource.- Specified by:
createActionin interfaceLiveActionFactory<ActionType extends LiveAction>- Parameters:
resource- containing configuration values- Returns:
- a new action instance
- Throws:
WCMException- in case of error
-
-