question: public void register ( T object ) { if ( invalidated . get ( ) ) { cleanup ( object ) ; return ; } objects . add ( object ) ; if ( invalidated . get ( ) ) cleanupAll ( ) ; }
target:  Registers the given object with this SharedObjectManager such that it is cleaned up once the SharedObjectManager is invalidated. If the SharedObjectManager has already been invalidated, the object will be cleaned up immediately.