private synchronized void readObject ( ObjectInputStream ois ) throws IOException , ClassNotFoundException { ois . defaultReadObject ( ) ; int svcsSize = ois . readInt ( ) ; for ( int i = 0 ; i < svcsSize ; i ++ ) { _serviceProviders . put ( ( Class ) ois . readObject ( ) , ( ServiceProvider ) ois . readObject ( ) ) ; } int listenersSize = ois . readInt ( ) ; for ( int i = 0 ; i < listenersSize ; i ++ ) { _bcsListeners . add ( ( BeanContextServicesListener ) ois . readObject ( ) ) ; } }
Deserialization support .