public void bind ( String name , T binding ) { put ( name , binding ) ; Map < String , Map < String , NameClassPair > > bindingsByContext = this . contextBindings ; if ( bindingsByContext != null ) { addContextBinding ( bindingsByContext , name , binding ) ; } Set < String > contexts = this . contexts ; if ( contexts != null ) { contexts . add ( getContextName ( name ) ) ; } }
Adds a binding .