public final class BatchSPIManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchSPIManager.PlatformMode
A value of
SE signifies execution on an SE platform,
while a value of EE signifies execution on an EE platform. |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getBatchContainerOverrideProperties() |
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() |
BatchSPIManager.PlatformMode |
getPlatformMode()
Returns the EEMode set via this SPI, if one has been set.
|
void |
registerBatchContainerOverrideProperties(Properties properties)
Override container properties read from META-INF
|
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.
|
void |
registerPlatformMode(BatchSPIManager.PlatformMode mode)
Override properties-file based config with programmatic setting of SE or EE
platform mode.
|
public static BatchSPIManager getInstance()
public BatchJobUtil getBatchJobUtil()
public BatchSecurityHelper getBatchSecurityHelper()
public BatchSPIManager.PlatformMode getPlatformMode()
TRUE signifes EE mode while a value
of FALSE signifies SE mode.
Here null is a significant value since we don't
default at this level of config. I.e., a null value here means
that the mode will be set by some other level of config (possibly
defaulting at that level).public ExecutorServiceProvider getExecutorServiceProvider()
public Properties getBatchContainerOverrideProperties()
public void registerBatchJobUtil(BatchJobUtil helper)
helper - implpublic void registerBatchSecurityHelper(BatchSecurityHelper helper)
helper - implpublic void registerPlatformMode(BatchSPIManager.PlatformMode mode)
mode - - Configures the batch runtime in EE mode or SE mode.public void registerExecutorServiceProvider(ExecutorServiceProvider provider)
provider - implpublic void registerBatchContainerOverrideProperties(Properties properties)
properties - The Properties to use as overrides.public DatabaseConfigurationBean getDataBaseConfigurationBean()
getFinalDatabaseConfiguration()public void registerDatabaseConfigurationBean(DatabaseConfigurationBean bean) throws DatabaseAlreadyInitializedException
bean - The batch runtime database configuration to use.DatabaseAlreadyInitializedException - If configuration has already been queried by the batch runtime.public DatabaseConfigurationBean getFinalDatabaseConfiguration()
© Copyright IBM Corp. 2014
Licensed under the Apache License, Version 2.0