Class BatchRuntimeHelper

java.lang.Object
org.glassfish.batch.spi.impl.BatchRuntimeHelper
All Implemented Interfaces:
org.glassfish.api.event.EventListener, org.glassfish.hk2.api.PostConstruct

@Service @RunLevel(10) public class BatchRuntimeHelper extends Object implements org.glassfish.hk2.api.PostConstruct, org.glassfish.api.event.EventListener
Helper class to get values for Batch Runtime. Follows zero-config rules by using default values when the batch-runtime config object is not present in domain.xml
Author:
Mahesh Kannan
  • Constructor Details

    • BatchRuntimeHelper

      public BatchRuntimeHelper()
  • Method Details

    • checkAndInitializeBatchRuntime

      public void checkAndInitializeBatchRuntime()
    • postConstruct

      public void postConstruct()
      Specified by:
      postConstruct in interface org.glassfish.hk2.api.PostConstruct
    • setExecutorService

      public void setExecutorService(ExecutorService executorService)
    • event

      public void event(org.glassfish.api.event.EventListener.Event event)
      Specified by:
      event in interface org.glassfish.api.event.EventListener
    • getDataSourceLookupName

      public String getDataSourceLookupName()
    • getDefaultDataSourceLookupNameForTarget

      public static String getDefaultDataSourceLookupNameForTarget(String targetName)
    • getExecutorServiceLookupName

      public String getExecutorServiceLookupName()
    • lookupExecutorService

      public ExecutorService lookupExecutorService()
    • lookupExecutorService

      public ExecutorService lookupExecutorService(String exeLookupName)