public void setListener ( T listener ) { Assert . notNull ( listener , "Listener must not be null" ) ; Assert . isTrue ( isSupportedType ( listener ) , "Listener is not of a supported type" ) ; this . listener = listener ; }
Set the listener that will be registered .