Package com.day.cq.wcm.msm.api
Interface LiveActionFactory<Type extends LiveAction>
-
- Type Parameters:
Type
-
- All Known Implementing Classes:
BaseActionFactory
,FilteredActionFactoryBase
public interface LiveActionFactory<Type extends LiveAction>
An Factory used to create LiveActions. Used to register LiveAction implementations with the ServiceComponentRegistration It enables to create LiveActions with a Configuration given by a Resource- See Also:
LiveAction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LIVE_ACTION_NAME
The Service Registration Property reporting the name of LiveActions this factory can create
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type
createAction(Resource resource)
java.lang.String
createsAction()
-
-
-
Field Detail
-
LIVE_ACTION_NAME
static final java.lang.String LIVE_ACTION_NAME
The Service Registration Property reporting the name of LiveActions this factory can create- See Also:
- Constant Field Values
-
-
Method Detail
-
createsAction
java.lang.String createsAction()
- Returns:
- name of the LiveAction to create. It must match
getName() of LiveAction
-
createAction
Type createAction(Resource resource) throws WCMException
- Parameters:
resource
- containing configuration values- Returns:
- the action instance or
null
, if given resource does not suited to created an Action - Throws:
WCMException
- in case of error
-
-