com.ibm.jbatch.spi
Class BatchSPIManager

java.lang.Object
  extended by com.ibm.jbatch.spi.BatchSPIManager

public final class BatchSPIManager
extends Object


Method Summary
 BatchJobUtil getBatchJobUtil()
           
 BatchSecurityHelper getBatchSecurityHelper()
           
 DatabaseConfigurationBean getDataBaseConfigurationBean()
          This is not the method that the 352 RI will call to get the final configuration, and lock off further updates.
 ExecutorServiceProvider getExecutorServiceProvider()
           
 DatabaseConfigurationBean getFinalDatabaseConfiguration()
          Called by the core batch runtime at the point when it is ready to harden the database configuration.
static BatchSPIManager getInstance()
           
 void registerBatchJobUtil(BatchJobUtil helper)
          May be called at any point and will be immediately reflected in the singleton, i.e.
 void registerBatchSecurityHelper(BatchSecurityHelper helper)
          May be called at any point and will be immediately reflected in the singleton, i.e.
 void registerDatabaseConfigurationBean(DatabaseConfigurationBean bean)
          This only will have an impact if the batch container has not already hardened its persistent store database configuration.
 void registerExecutorServiceProvider(ExecutorServiceProvider provider)
          May be called at any point and will be immediately reflected in the singleton, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BatchSPIManager getInstance()
Returns:
singleton instance

getBatchJobUtil

public BatchJobUtil getBatchJobUtil()
Returns:
The most recently set BatchJobUtil

getBatchSecurityHelper

public BatchSecurityHelper getBatchSecurityHelper()
Returns:
The most recently set BatchSecurityHelper

getExecutorServiceProvider

public ExecutorServiceProvider getExecutorServiceProvider()
Returns:
The most recently set ExecutorServiceProvider

registerBatchJobUtil

public void registerBatchJobUtil(BatchJobUtil helper)
May be called at any point and will be immediately reflected in the singleton, i.e. getBatchJobUtil() will return this.

Parameters:
helper - impl

registerBatchSecurityHelper

public void registerBatchSecurityHelper(BatchSecurityHelper helper)
May be called at any point and will be immediately reflected in the singleton, i.e. getBatchSecurityHelper() will return this.

Parameters:
helper - impl

registerExecutorServiceProvider

public void registerExecutorServiceProvider(ExecutorServiceProvider provider)
May be called at any point and will be immediately reflected in the singleton, i.e. getExecutorServiceProvider() will return this.

Parameters:
provider - impl

getDataBaseConfigurationBean

public DatabaseConfigurationBean getDataBaseConfigurationBean()
This is not the method that the 352 RI will call to get the final configuration, and lock off further updates. This is just a normal getter which is more use while the configuration is still being set, before it is hardened.

Returns:
the last-set DatabaseConfigurationBean
See Also:
getFinalDatabaseConfiguration()

registerDatabaseConfigurationBean

public void registerDatabaseConfigurationBean(DatabaseConfigurationBean bean)
                                       throws DatabaseAlreadyInitializedException
This only will have an impact if the batch container has not already hardened its persistent store database configuration. There is no ability to dynamically update the configuration, so if this call comes in after the lazy initialization, it is too late.

Parameters:
bean -
Throws:
DatabaseAlreadyInitializedException - If configuration has already been queried by the batch runtime.

getFinalDatabaseConfiguration

public DatabaseConfigurationBean getFinalDatabaseConfiguration()
Called by the core batch runtime at the point when it is ready to harden the database configuration.

Returns:
The batch runtime database configuration, if set, or null if not set.


Copyright © 2013. All Rights Reserved.