public void shutdown ( ) { synchronized ( this ) { if ( mShutdown ) { return ; } for ( AppServiceProxy p : mProxies . values ( ) ) { if ( p . isConnected ( ) ) { mContext . unbindService ( p ) ; mProxies . remove ( p ) ; } } mShutdown = true ; } }
Unbinds all proxies available in caches and prevents the creation of new ones .