예제 #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();
   }
 }
예제 #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();
   }
 }