public void removeAllListeners(boolean permanent) throws PersistenceBrokerException
    {
        if (permanent)
        {
            // remove permanent listeners as well
            permanentStateListeners.clear();
            // this could be huge, thus simply replace instance
            if(permanentLifeCycleListeners.size() > 10000)
            {
                permanentLifeCycleListeners = Collections.synchronizedList(new IdentityArrayList(100));
            }
            else
            {
                permanentLifeCycleListeners.clear();
            }
        }

        temporaryStateListeners.clear();
        // this could be huge, thus simply replace instance
        if(temporaryLifeCycleListeners.size() > 10000)
        {
            temporaryLifeCycleListeners = Collections.synchronizedList(new IdentityArrayList(100));
        }
        else
        {
            temporaryLifeCycleListeners.clear();
        }
    }
public void removeAllListeners ( boolean permanent ) throws PersistenceBrokerException { if ( permanent ) { permanentStateListeners . clear ( ) ; if ( permanentLifeCycleListeners . size ( ) > 10000 ) { permanentLifeCycleListeners = Collections . synchronizedList ( new IdentityArrayList ( 100 ) ) ; } else { permanentLifeCycleListeners . clear ( ) ; } } temporaryStateListeners . clear ( ) ; if ( temporaryLifeCycleListeners . size ( ) > 10000 ) { temporaryLifeCycleListeners = Collections . synchronizedList ( new IdentityArrayList ( 100 ) ) ; } else { temporaryLifeCycleListeners . clear ( ) ; } }
@see org.apache.ojb.broker.PersistenceBroker#removeAllListeners(boolean)