Class JobExplorerFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<JobExplorer>, org.springframework.beans.factory.InitializingBean

    public class JobExplorerFactoryBean
    extends AbstractJobExplorerFactoryBean
    implements org.springframework.beans.factory.InitializingBean
    A FactoryBean that automates the creation of a SimpleJobExplorer using JDBC DAO implementations. Requires the user to describe what kind of database they are using.
    Since:
    2.0
    Author:
    Dave Syer
    • Constructor Detail

      • JobExplorerFactoryBean

        public JobExplorerFactoryBean()
    • Method Detail

      • setDataSource

        public void setDataSource​(javax.sql.DataSource dataSource)
        Public setter for the DataSource.
        Parameters:
        dataSource - a DataSource
      • setJdbcOperations

        public void setJdbcOperations​(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
        Public setter for the JdbcOperations. If this property is not set explicitly, a new JdbcTemplate will be created for the configured DataSource by default.
        Parameters:
        jdbcOperations - a JdbcOperations
      • setTablePrefix

        public void setTablePrefix​(java.lang.String tablePrefix)
        Sets the table prefix for all the batch meta-data tables.
        Parameters:
        tablePrefix - prefix for the batch meta-data tables
      • setLobHandler

        public void setLobHandler​(org.springframework.jdbc.support.lob.LobHandler lobHandler)
        The lob handler to use when saving ExecutionContext instances. Defaults to null which works for most databases.
        Parameters:
        lobHandler - Large object handler for saving ExecutionContext
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • getObject

        public JobExplorer getObject()
                              throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<JobExplorer>
        Throws:
        java.lang.Exception