public static synchronized void unregisterDao ( ConnectionSource connectionSource , Dao < ? , ? > dao ) { if ( connectionSource == null ) { throw new IllegalArgumentException ( "connectionSource argument cannot be null" ) ; } removeDaoToClassMap ( new ClassConnectionSource ( connectionSource , dao . getDataClass ( ) ) ) ; }
Remove a DAO from the cache . This is necessary if we ve registered it already but it throws an exception during configuration .