public List<Throwable> callEntityExitListener(Context context) { List<Throwable> exceptions = null; paxmlExecutionListeners = context.getPaxmlExecutionListeners(false); if (paxmlExecutionListeners != null) { for (IExecutionListener listener : paxmlExecutionListeners) { try { listener.onExit(this, context); } catch (Throwable e) { if (exceptions == null) { exceptions = new ArrayList<Throwable>(); } exceptions.add(e); if (log.isErrorEnabled()) { log.error("Exception in the end of paxml execution", e); } } } } return exceptions; }
if (callEntryListener && paxmlExecutionListeners != null) { for (IExecutionListener listener : context.getPaxmlExecutionListeners(false)) { listener.onEntry(this, context);
if (callEntryListener && paxmlExecutionListeners != null) { for (IExecutionListener listener : context.getPaxmlExecutionListeners(false)) { listener.onEntry(this, context);
public List<Throwable> callEntityExitListener(Context context) { List<Throwable> exceptions = null; paxmlExecutionListeners = context.getPaxmlExecutionListeners(false); if (paxmlExecutionListeners != null) { for (IExecutionListener listener : paxmlExecutionListeners) { try { listener.onExit(this, context); } catch (Throwable e) { if (exceptions == null) { exceptions = new ArrayList<Throwable>(); } exceptions.add(e); if (log.isErrorEnabled()) { log.error("Exception in the end of paxml execution", e); } } } } return exceptions; }