protected static void store ( Webcam [ ] webcams ) { if ( HANDLER . get ( ) == null ) { HANDLER . set ( new WebcamDeallocator ( webcams ) ) ; } else { throw new IllegalStateException ( "Deallocator is already set!" ) ; } }
Store devices to be deallocated when TERM signal has been received .