public synchronized void reset() { updateIterator(); if (state == State.COMPLETE) { state = State.EXECUTING; iterator.reset(); } else { iterator.reset(); } }
public synchronized void reset() { updateIterator(); if (state == State.COMPLETE) { state = State.EXECUTING; iterator.reset(); } else { iterator.reset(); } }
public synchronized void reset() { updateIterator(); if (state == State.COMPLETE) { state = State.EXECUTING; iterator.reset(); } else { iterator.reset(); } }
public synchronized void reset() { updateIterator(); if (state == State.COMPLETE) { state = State.EXECUTING; iterator.reset(); } else { iterator.reset(); } }
/** * Intercept a message, invoking each phase's handlers in turn, * starting after the specified interceptor. * * @param message the message * @param startingAfterInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAfter(Message message, String startingAfterInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAfterInterceptorID)) { break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting after the specified interceptor. * * @param message the message * @param startingAfterInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAfter(Message message, String startingAfterInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAfterInterceptorID)) { break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting after the specified interceptor. * * @param message the message * @param startingAfterInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAfter(Message message, String startingAfterInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAfterInterceptorID)) { break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting after the specified interceptor. * * @param message the message * @param startingAfterInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAfter(Message message, String startingAfterInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAfterInterceptorID)) { break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting at the specified interceptor. * * @param message the message * @param startingAtInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAt(Message message, String startingAtInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAtInterceptorID)) { iterator.previous(); break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting at the specified interceptor. * * @param message the message * @param startingAtInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAt(Message message, String startingAtInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAtInterceptorID)) { iterator.previous(); break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting at the specified interceptor. * * @param message the message * @param startingAtInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAt(Message message, String startingAtInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAtInterceptorID)) { iterator.previous(); break; } } return doIntercept(message); }
/** * Intercept a message, invoking each phase's handlers in turn, * starting at the specified interceptor. * * @param message the message * @param startingAtInterceptorID the id of the interceptor * @throws Exception */ public synchronized boolean doInterceptStartingAt(Message message, String startingAtInterceptorID) { updateIterator(); while (state == State.EXECUTING && iterator.hasNext()) { PhaseInterceptor<? extends Message> currentInterceptor = (PhaseInterceptor<? extends Message>)iterator.next(); if (currentInterceptor.getId().equals(startingAtInterceptorID)) { iterator.previous(); break; } } return doIntercept(message); }