Esempio n. 1
0
 public Serializable checkpointInfo(
     final Configuration configuration, final ExecutionContext context) throws Exception {
   final InjectionContext injectionContext = configuration.getInjectionContext();
   final InjectablesProvider provider = injectionContext.getProvider();
   try {
     provider.setInjectables(_injectables(configuration, context));
     return load(javax.batch.api.chunk.ItemReader.class, configuration, context).checkpointInfo();
   } finally {
     provider.releaseInjectables();
   }
 }
Esempio n. 2
0
 public void close(final Configuration configuration, final ExecutionContext context)
     throws Exception {
   final InjectionContext injectionContext = configuration.getInjectionContext();
   final InjectablesProvider provider = injectionContext.getProvider();
   try {
     provider.setInjectables(_injectables(configuration, context));
     load(javax.batch.api.chunk.ItemReader.class, configuration, context).close();
   } finally {
     provider.releaseInjectables();
   }
 }