コード例 #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();
   }
 }