Package org.glassfish.batch.spi.impl
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
org.glassfish.api.event.EventListener.Event<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description BatchRuntimeHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAndInitializeBatchRuntime()voidevent(org.glassfish.api.event.EventListener.Event event)StringgetDataSourceLookupName()static StringgetDefaultDataSourceLookupNameForTarget(String targetName)StringgetExecutorServiceLookupName()ExecutorServicelookupExecutorService()ExecutorServicelookupExecutorService(String exeLookupName)voidpostConstruct()voidsetExecutorService(ExecutorService executorService)
-
-
-
Method Detail
-
checkAndInitializeBatchRuntime
public void checkAndInitializeBatchRuntime()
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
setExecutorService
public void setExecutorService(ExecutorService executorService)
-
event
public void event(org.glassfish.api.event.EventListener.Event event)
- Specified by:
eventin interfaceorg.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)
-
-