/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(StepExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link StepContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(JobExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link JobContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * A convenient "deep" close operation. Call this instead of {@link #close()} if the execution for the current * context is ending. * Delegates to {@link #close(Object)} and then ensures that {@link #close()} is also called in a finally block. */ public void release() { C context = getContext(); try { if (context != null) { close(context); } } finally { close(); } }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(JobExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link JobContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(JobExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link JobContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(StepExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link StepContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(JobExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link JobContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(StepExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link StepContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * Method for unregistering the current context - should always and only be * used by in conjunction with a matching {@link #register(StepExecution)} * to ensure that {@link #getContext()} always returns the correct value. * Does not call {@link StepContext#close()} - that is left up to the caller * because he has a reference to the context (having registered it) and only * he has knowledge of when the step actually ended. */ public static void close() { manager.close(); }
/** * A convenient "deep" close operation. Call this instead of {@link #close()} if the execution for the current * context is ending. * Delegates to {@link #close(Object)} and then ensures that {@link #close()} is also called in a finally block. */ public void release() { C context = getContext(); try { if (context != null) { close(context); } } finally { close(); } }
/** * A convenient "deep" close operation. Call this instead of {@link #close()} if the execution for the current * context is ending. * Delegates to {@link #close(Object)} and then ensures that {@link #close()} is also called in a finally block. */ public void release() { C context = getContext(); try { if (context != null) { close(context); } } finally { close(); } }
/** * A convenient "deep" close operation. Call this instead of {@link #close()} if the execution for the current * context is ending. * Delegates to {@link #close(Object)} and then ensures that {@link #close()} is also called in a finally block. */ public void release() { C context = getContext(); try { if (context != null) { close(context); } } finally { close(); } }