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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidevent(org.glassfish.api.event.EventListener.Event event) static StringgetDefaultDataSourceLookupNameForTarget(String targetName) lookupExecutorService(String exeLookupName) voidvoidsetExecutorService(ExecutorService executorService)
-
Constructor Details
-
BatchRuntimeHelper
public BatchRuntimeHelper()
-
-
Method Details
-
checkAndInitializeBatchRuntime
public void checkAndInitializeBatchRuntime() -
postConstruct
public void postConstruct()- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
setExecutorService
-
event
public void event(org.glassfish.api.event.EventListener.Event event) - Specified by:
eventin interfaceorg.glassfish.api.event.EventListener
-
getDataSourceLookupName
-
getDefaultDataSourceLookupNameForTarget
-
getExecutorServiceLookupName
-
lookupExecutorService
-
lookupExecutorService
-