public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDeleteListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DELETE) || hasHandlers(source, meta, LifecycleEvent.AFTER_DELETE) || hasHandlers(source, meta, LifecycleEvent.AFTER_DELETE_PERFORMED); }
protected void fireEvent(Object event, Object listener) { RemoteCommitListener listen = (RemoteCommitListener) listener; RemoteCommitEvent ev = (RemoteCommitEvent) event; listen.afterCommit(ev); }
private boolean removeSystemListenerInternal(Object listener) { if (!_listeners.contains(listener)) return false; // copy to avoid issues with ListenerList and avoid unncessary // locking on the list during runtime LifecycleEventManager.ListenerList listeners = new LifecycleEventManager.ListenerList(_listeners); listeners.remove(listener); _listeners = listeners; return true; }
/** * Constructor. Make the callback on an instance of the given type. */ public BeanLifecycleCallbacks(Class<?> cls, Method method, boolean arg) { super(method, arg); _listener = newListener(cls); }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasLoadListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.AFTER_LOAD); }
protected void fireEvent(Object event, Object listener) { RemoteCommitListener listen = (RemoteCommitListener) listener; RemoteCommitEvent ev = (RemoteCommitEvent) event; listen.afterCommit(ev); }
/** * Constructor. Make the callback on an instance of the given type. */ public BeanLifecycleCallbacks(Class cls, Method method, boolean arg) { super(method, arg); _listener = newListener(cls); }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDirtyListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DIRTY) || hasHandlers(source, meta, LifecycleEvent.AFTER_DIRTY); }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasAttachListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_ATTACH) || hasHandlers(source, meta, LifecycleEvent.AFTER_ATTACH); }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDeleteListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DELETE) || hasHandlers(source, meta, LifecycleEvent.AFTER_DELETE) || hasHandlers(source, meta, LifecycleEvent.AFTER_DELETE_PERFORMED); }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasUpdateListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_UPDATE) || hasHandlers(source, meta, LifecycleEvent.AFTER_UPDATE_PERFORMED); }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDirtyListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DIRTY) || hasHandlers(source, meta, LifecycleEvent.AFTER_DIRTY); }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasPersistListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_PERSIST) || hasHandlers(source, meta, LifecycleEvent.AFTER_PERSIST) || hasHandlers(source, meta, LifecycleEvent.AFTER_PERSIST_PERFORMED); }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDetachListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DETACH) || hasHandlers(source, meta, LifecycleEvent.AFTER_DETACH); }
/** * Return whether there are listeners or callbacks for the given source. */ public boolean hasDirtyListeners(Object source, ClassMetaData meta) { return hasHandlers(source, meta, LifecycleEvent.BEFORE_DIRTY) || hasHandlers(source, meta, LifecycleEvent.AFTER_DIRTY); }