类 AbstractJobRepositoryFactoryBean

    • 方法详细资料

      • getObjectType

        public java.lang.Class<JobRepositorygetObjectType()
        The type of object to be returned from getObject().
        指定者:
        getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<JobRepository>
        返回:
        JobRepository.class
        另请参阅:
        FactoryBean.getObjectType()
      • isSingleton

        public boolean isSingleton()
        指定者:
        isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<JobRepository>
      • setValidateTransactionState

        public void setValidateTransactionState​(boolean validateTransactionState)
        Flag to determine whether to check for an existing transaction when a JobExecution is created. Defaults to true because it is usually a mistake, and leads to problems with restartability and also to deadlocks in multi-threaded steps.
        参数:
        validateTransactionState - the flag to set
      • setTransactionManager

        public void setTransactionManager​(org.springframework.transaction.PlatformTransactionManager transactionManager)
        Public setter for the PlatformTransactionManager.
        参数:
        transactionManager - the transactionManager to set
      • getTransactionManager

        public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
        The transaction manager used in this factory. Useful to inject into steps and jobs, to ensure that they are using the same instance.
        返回:
        the transactionManager
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception
      • getObject

        public JobRepository getObject()
                                throws java.lang.Exception
        指定者:
        getObject 在接口中 org.springframework.beans.factory.FactoryBean<JobRepository>
        抛出:
        java.lang.Exception