Class DefaultExecutionStrategyFactory
- java.lang.Object
-
- com.levigo.jadice.server.core.execution.DefaultExecutionStrategyFactory
-
- All Implemented Interfaces:
ExecutionStrategyFactory
,org.springframework.beans.factory.InitializingBean
public class DefaultExecutionStrategyFactory extends Object implements ExecutionStrategyFactory, org.springframework.beans.factory.InitializingBean
The default implementation of aDefaultExecutionStrategyFactory
. This class is intended to be configured and injected via the Spring XML configuration.- Since:
- jadice server 5.5.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultExecutionStrategyFactory.Type
The type of the concreteExecutionStrategy
that shall be instantiated
-
Field Summary
Fields Modifier and Type Field Description static DefaultExecutionStrategyFactory.Type
DEFAULT_TYPE
-
Constructor Summary
Constructors Constructor Description DefaultExecutionStrategyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
ExecutionStrategy
createStrategy(JobExecutionContext execContext)
Create a newExecutionStrategy
for the givenJobExecutionContext
ThreadReaper
getThreadReaper()
DefaultExecutionStrategyFactory.Type
getType()
void
setThreadReaper(ThreadReaper threadReaper)
void
setType(DefaultExecutionStrategyFactory.Type type)
-
-
-
Field Detail
-
DEFAULT_TYPE
public static final DefaultExecutionStrategyFactory.Type DEFAULT_TYPE
-
-
Method Detail
-
createStrategy
public ExecutionStrategy createStrategy(JobExecutionContext execContext)
Description copied from interface:ExecutionStrategyFactory
Create a newExecutionStrategy
for the givenJobExecutionContext
- Specified by:
createStrategy
in interfaceExecutionStrategyFactory
- Parameters:
execContext
- TheJobExecutionContext
which is responsible for theExecutionStrategy
- Returns:
- a new
ExecutionStrategy
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setType
public void setType(DefaultExecutionStrategyFactory.Type type)
- Parameters:
type
- theDefaultExecutionStrategyFactory.Type
of the desiredExecutionStrategy
this instance shall create
-
getType
public DefaultExecutionStrategyFactory.Type getType()
-
setThreadReaper
public void setThreadReaper(ThreadReaper threadReaper)
-
getThreadReaper
public ThreadReaper getThreadReaper()
-
-