/** * Fire lifecycle event to all registered listeners without an argument. */ public Exception[] fireEvent(Object source, ClassMetaData meta, int type) { return fireEvent(source, null, meta, type); }
/** * Fire lifecycle event to all registered listeners without an argument. */ public Exception[] fireEvent(Object source, ClassMetaData meta, int type) { return fireEvent(source, null, meta, type); }
/** * Fire lifecycle event to all registered listeners without an argument. */ public Exception[] fireEvent(Object source, ClassMetaData meta, int type) { return fireEvent(source, null, meta, type); }
/** * Fire lifecycle event to all registered listeners without an argument. */ public Exception[] fireEvent(Object source, ClassMetaData meta, int type) { return fireEvent(source, null, meta, type); }
/** * Fire lifecycle event to all registered listeners without an argument. */ public Exception[] fireEvent(Object source, ClassMetaData meta, int type) { return fireEvent(source, null, meta, type); }
/** * Fire given lifecycle event, handling any exceptions appropriately. * * @return whether events are being processed at this time */ boolean fireLifecycleEvent(Object src, Object related, ClassMetaData meta, int eventType) { if (_lifeEventManager == null) return false; handleCallbackExceptions(_lifeEventManager.fireEvent(src, related, meta, eventType), _lifeCallbackMode); return true; }
/** * Return true if any listeners are registered for the given source and * event type. */ private boolean hasListeners(Object source, ClassMetaData meta, int type) { if (meta.getLifecycleMetaData().getIgnoreSystemListeners()) return false; if (fireEvent(null, source, null, type, _listeners, true, null) == Boolean.TRUE) return true; ListenerList system = meta.getRepository().getSystemListeners(); if (!system.isEmpty() && fireEvent(null, source, null, type, system, true, null) == Boolean.TRUE) return true; if (_classListeners != null) { Class<?> c = source == null ? meta.getDescribedType() : source.getClass(); do { if (fireEvent(null, source, null, type, (ListenerList) _classListeners.get(c), true, null) == Boolean.TRUE) return true; c = c.getSuperclass(); } while (c != null && c != Object.class); } return false; }
/** * Return true if any listeners are registered for the given source and * event type. */ private boolean hasListeners(Object source, ClassMetaData meta, int type) { if (meta.getLifecycleMetaData().getIgnoreSystemListeners()) return false; if (fireEvent(null, source, null, type, _listeners, true, null) == Boolean.TRUE) return true; ListenerList system = meta.getRepository().getSystemListeners(); if (!system.isEmpty() && fireEvent(null, source, null, type, system, true, null) == Boolean.TRUE) return true; if (_classListeners != null) { Class<?> c = source == null ? meta.getDescribedType() : source.getClass(); do { if (fireEvent(null, source, null, type, (ListenerList) _classListeners.get(c), true, null) == Boolean.TRUE) return true; c = c.getSuperclass(); } while (c != null && c != Object.class); } return false; }
/** * Return true if any listeners are registered for the given source and * event type. */ private boolean hasListeners(Object source, ClassMetaData meta, int type) { if (meta.getLifecycleMetaData().getIgnoreSystemListeners()) return false; if (fireEvent(null, source, null, type, _listeners, true, null) == Boolean.TRUE) return true; ListenerList system = meta.getRepository().getSystemListeners(); if (!system.isEmpty() && fireEvent(null, source, null, type, system, true, null) == Boolean.TRUE) return true; if (_classListeners != null) { Class<?> c = source == null ? meta.getDescribedType() : source.getClass(); do { if (fireEvent(null, source, null, type, (ListenerList) _classListeners.get(c), true, null) == Boolean.TRUE) return true; c = c.getSuperclass(); } while (c != null && c != Object.class); } return false; }
/** * Return true if any listeners are registered for the given source and * event type. */ private boolean hasListeners(Object source, ClassMetaData meta, int type) { if (meta.getLifecycleMetaData().getIgnoreSystemListeners()) return false; if (fireEvent(null, source, null, type, _listeners, true, null) == Boolean.TRUE) return true; ListenerList system = meta.getRepository().getSystemListeners(); if (!system.isEmpty() && fireEvent(null, source, null, type, system, true, null) == Boolean.TRUE) return true; if (_classListeners != null) { Class<?> c = source == null ? meta.getDescribedType() : source.getClass(); do { if (fireEvent(null, source, null, type, (ListenerList) _classListeners.get(c), true, null) == Boolean.TRUE) return true; c = c.getSuperclass(); } while (c != null && c != Object.class); } return false; }
/** * Return true if any listeners are registered for the given source and * event type. */ private synchronized boolean hasListeners(Object source, ClassMetaData meta, int type) { if (meta.getLifecycleMetaData().getIgnoreSystemListeners()) return false; if (fireEvent(null, source, null, type, _listeners, true, null) == Boolean.TRUE) return true; ListenerList system = meta.getRepository().getSystemListeners(); if (!system.isEmpty() && fireEvent(null, source, null, type, system, true, null) == Boolean.TRUE) return true; if (_classListeners != null) { Class c = source == null ? meta.getDescribedType() : source.getClass(); do { if (fireEvent(null, source, null, type, (ListenerList) _classListeners.get(c), true, null) == Boolean.TRUE) return true; c = c.getSuperclass(); } while (c != null && c != Object.class); } return false; }
makeCallbacks(source, related, meta, type, exceptions); LifecycleEvent ev = (LifecycleEvent) fireEvent(null, source, related, type, _listeners, false, exceptions); source.getClass(); do { ev = (LifecycleEvent) fireEvent(ev, source, related, type, (ListenerList) _classListeners.get(c), false, exceptions); c = c.getSuperclass(); fireEvent(ev, source, related, type, system, false, exceptions);
Exception[] evx = super.fireEvent(source, related, meta, type);
Exception[] evx = super.fireEvent(source, related, meta, type);
Exception[] evx = super.fireEvent(source, related, meta, type);
Exception[] evx = super.fireEvent(source, related, meta, type);
/** * Fire given lifecycle event, handling any exceptions appropriately. * * @return whether events are being processed at this time */ boolean fireLifecycleEvent(Object src, Object related, ClassMetaData meta, int eventType) { if (_lifeEventManager == null) return false; if (!_lifeEventManager.isActive(meta)) return false; lock(); Exception[] exs; try { exs = _lifeEventManager.fireEvent(src, related, meta, eventType); } finally { unlock(); } handleCallbackExceptions(exs, _lifeCallbackMode); return true; }
/** * Fire given lifecycle event, handling any exceptions appropriately. * * @return whether events are being processed at this time */ boolean fireLifecycleEvent(Object src, Object related, ClassMetaData meta, int eventType) { if (_lifeEventManager == null) return false; if (!_lifeEventManager.isActive(meta)) return false; lock(); Exception[] exs; try { exs = _lifeEventManager.fireEvent(src, related, meta, eventType); } finally { unlock(); } handleCallbackExceptions(exs, _lifeCallbackMode); return true; }
/** * Fire given lifecycle event, handling any exceptions appropriately. * * @return whether events are being processed at this time */ boolean fireLifecycleEvent(Object src, Object related, ClassMetaData meta, int eventType) { if (_lifeEventManager == null) return false; if (!_lifeEventManager.isActive(meta)) return false; lock(); Exception[] exs; try { exs = _lifeEventManager.fireEvent(src, related, meta, eventType); } finally { unlock(); } handleCallbackExceptions(exs, _lifeCallbackMode); return true; }
/** * Fire given lifecycle event, handling any exceptions appropriately. * * @return whether events are being processed at this time */ boolean fireLifecycleEvent(Object src, Object related, ClassMetaData meta, int eventType) { if (_lifeEventManager == null) return false; if (!_lifeEventManager.isActive(meta)) return false; lock(); Exception[] exs; try { exs = _lifeEventManager.fireEvent(src, related, meta, eventType); } finally { unlock(); } handleCallbackExceptions(exs, _lifeCallbackMode); return true; }