@ Override public GroovyRunner put ( String key , GroovyRunner runner ) { if ( key == null || runner == null ) { return null ; } Map < String , GroovyRunner > map = getMap ( ) ; writeLock . lock ( ) ; try { cachedValues = null ; return map . put ( key , runner ) ; } finally { writeLock . unlock ( ) ; } }
Registers a runner with the specified key .