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