public class DefaultExecutionStrategyFactory extends Object implements ExecutionStrategyFactory, org.springframework.beans.factory.InitializingBean
DefaultExecutionStrategyFactory
.
This class is intended to be configured and injected via the Spring XML configuration.Modifier and Type | Class and Description |
---|---|
static class |
DefaultExecutionStrategyFactory.Type
The type of the concrete
ExecutionStrategy that shall be instantiated |
Modifier and Type | Field and Description |
---|---|
static DefaultExecutionStrategyFactory.Type |
DEFAULT_TYPE |
Constructor and Description |
---|
DefaultExecutionStrategyFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ExecutionStrategy |
createStrategy(JobExecutionContext execContext)
Create a new
ExecutionStrategy for the given JobExecutionContext |
ThreadReaper |
getThreadReaper() |
DefaultExecutionStrategyFactory.Type |
getType() |
void |
setThreadReaper(ThreadReaper threadReaper) |
void |
setType(DefaultExecutionStrategyFactory.Type type) |
public static DefaultExecutionStrategyFactory.Type DEFAULT_TYPE
public ExecutionStrategy createStrategy(JobExecutionContext execContext)
ExecutionStrategyFactory
ExecutionStrategy
for the given JobExecutionContext
createStrategy
in interface ExecutionStrategyFactory
execContext
- The JobExecutionContext
which is responsible for the ExecutionStrategy
ExecutionStrategy
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setType(DefaultExecutionStrategyFactory.Type type)
type
- the DefaultExecutionStrategyFactory.Type
of the desired ExecutionStrategy
this instance
shall createpublic DefaultExecutionStrategyFactory.Type getType()
public void setThreadReaper(ThreadReaper threadReaper)
public ThreadReaper getThreadReaper()
Copyright © 2017 levigo holding gmbh. All rights reserved.