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 Object
implements LiveActionFactory<ActionType>
Base implementation of a
LiveActionFactory service-
Field Summary
Fields inherited from interface com.day.cq.wcm.msm.api.LiveActionFactory
LIVE_ACTION_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAction(Resource resource) Creates an action using thenewActionInstance(ValueMap)method.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.day.cq.wcm.msm.api.LiveActionFactory
createsAction
-
Constructor Details
-
BaseActionFactory
public BaseActionFactory()
-
-
Method Details
-
createAction
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
-