final void setAttribute ( final Attribute attribute , final Object object ) { Validate . notNull ( attribute ) ; LOG . debug ( "setting attribute: {} with value: {}" , attribute , object ) ; Validate . isTrue ( attribute . isValid ( object ) , object + " is not of valid subType for attribute: " + attribute ) ; servletContext . setAttribute ( getAttributeName ( attribute ) , object ) ; }
Sets the attribute into the servlet context . The name of the attribute will be computed for you .