Here is a nicer version where the factory offers getExecutor() for an executor you should call cleanup on, and getSelfCleaningExecutor() for one shot executors that you don't. I know you were just looking for the gist, but that 1Shot business was too embarrasing to leave alone...
JooqExecutorFactory.7z
Description: application/7z-compressed
