public void notification ( int event , Object [ ] args ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "notification" , new Object [ ] { event , args } ) ; switch ( event ) { // This event will be notified by the ObjectManager when it shuts down. // Do any clearing up and closing down required if it had previously started. // If it is still in the process of starting, we are not interested. case ObjectManagerEventCallback . objectManagerStopped : if ( _omgrStarted ) { objectManagerStopped ( ) ; } break ; // The ObjectManager has found an object store to open. // We need to ensure it exists & patch up the map if not. case ObjectManagerEventCallback . objectStoreOpened : ensureStoreCanBeFound ( ( ObjectStore ) args [ 0 ] ) ; break ; // No other events that we know or care about. default : } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "notification" ) ; }
by the ObjectManager when anything interesting occurs .