public void clear ( ) { Class collClass = getCollectionClass ( ) ; // ECER: assure we notify all objects being removed, // necessary for RemovalAwareCollections... if ( IRemovalAwareCollection . class . isAssignableFrom ( collClass ) ) { getData ( ) . clear ( ) ; } else { Collection coll ; // BRJ: use an empty collection so isLoaded will return true // for non RemovalAwareCollections only !! try { coll = ( Collection ) collClass . newInstance ( ) ; } catch ( Exception e ) { coll = new ArrayList ( ) ; } setData ( coll ) ; } _size = 0 ; }
Clears the proxy . A cleared proxy is defined as loaded