org.alfresco.repo.action
Class ActionServiceImplTest.SleepActionExecuter
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.action.ActionServiceImplTest.SleepActionExecuter
- All Implemented Interfaces:
- ActionExecuter, org.springframework.beans.factory.BeanNameAware
- Enclosing class:
- ActionServiceImplTest
public static class ActionServiceImplTest.SleepActionExecuter
- extends ActionExecuterAbstractBase
This class is only intended for use in JUnit tests.
Field Summary |
static java.lang.String |
GO_BANG
|
static java.lang.String |
NAME
|
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
GO_BANG
public static final java.lang.String GO_BANG
- See Also:
- Constant Field Values
ActionServiceImplTest.SleepActionExecuter
public ActionServiceImplTest.SleepActionExecuter()
getTimesExecuted
public int getTimesExecuted()
resetTimesExecuted
public void resetTimesExecuted()
registerIfNeeded
public static void registerIfNeeded(org.springframework.context.ConfigurableApplicationContext ctx)
- Loads this executor into the ApplicationContext, if it isn't already there
getExecutingThread
public java.lang.Thread getExecutingThread()
getSleepMs
public int getSleepMs()
setSleepMs
public void setSleepMs(int sleepMs)
addParameterDefinitions
protected void addParameterDefinitions(java.util.List paramList)
- Add parameter definitions
- Specified by:
addParameterDefinitions
in class ParameterizedItemAbstractBase
- Parameters:
paramList
- the parameter definitions list
executeImpl
protected void executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
- Description copied from class:
ActionExecuterAbstractBase
- Execute the action implementation
- Specified by:
executeImpl
in class ActionExecuterAbstractBase
- Parameters:
action
- the actionactionedUponNodeRef
- the actioned upon node
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.