public synchronized void addLiveObject( Com4jObject r ) {// TODO: why is this public?
    	if(r instanceof Wrapper) {
    		liveComObjects.add(((Wrapper)r).ref);
    	}
        
        if(!listeners.isEmpty()) {
            for( int i=listeners.size()-1; i>=0; i-- )
                listeners.get(i).onNewObject(r);
        }
    }
public synchronized void addLiveObject ( Com4jObject r ) { if ( r instanceof Wrapper ) { liveComObjects . add ( ( ( Wrapper ) r ) . ref ) ; } if ( ! listeners . isEmpty ( ) ) { for ( int i = listeners . size ( ) - 1 ; i >= 0 ; i -- ) listeners . get ( i ) . onNewObject ( r ) ; } }
Adds a {@link Com4jObject} to the live objects of this {@link ComThread}
<p>
This method increases the live object count of this thread and fires an
{@link ComObjectListener#onNewObject(Com4jObject)} event to all listeners.
</p>
@param r The new {@link Com4jObject}