public class QuartzEventSchedulerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<QuartzEventScheduler>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
QuartzEventSchedulerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
QuartzEventScheduler |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEventBus(EventBus eventBus)
Sets the event bus to which scheduled events need to be published.
|
void |
setEventJobDataBinder(EventJobDataBinder eventJobDataBinder)
Sets the
EventJobDataBinder instance which reads / writes the event message to publish to the
JobDataMap . |
void |
setGroupIdentifier(String groupIdentifier)
Sets the group identifier to use when scheduling jobs with Quartz.
|
void |
setScheduler(org.quartz.Scheduler scheduler)
Sets the backing Quartz Scheduler for this timer.
|
void |
setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
The TransactionDefinition to use by the transaction manager.
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Sets the transaction manager that manages the transaction around the publication of an event.
|
public QuartzEventScheduler getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<QuartzEventScheduler>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<QuartzEventScheduler>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<QuartzEventScheduler>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setScheduler(org.quartz.Scheduler scheduler)
scheduler
- the backing Quartz Scheduler for this timerpublic void setEventBus(EventBus eventBus)
eventBus
- the event bus to which scheduled events need to be published.public void setGroupIdentifier(String groupIdentifier)
groupIdentifier
- the group identifier to use when scheduling jobs with Quartzpublic void setEventJobDataBinder(EventJobDataBinder eventJobDataBinder)
EventJobDataBinder
instance which reads / writes the event message to publish to the
JobDataMap
. Defaults to
QuartzEventScheduler.DirectEventJobDataBinder
.eventJobDataBinder
- to usepublic void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager
- the transaction manager that takes care of transactions around event publicationpublic void setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
DefaultTransactionDefinition
.
Is ignored if no transaction manager is configured.transactionDefinition
- the TransactionDefinition to use by the transaction managerCopyright © 2010–2019. All rights reserved.