I think for people that prefer to use the handler programmatically, we should expose a setter that uses the enumeration directly. Also, I always felt a bit that by doing String parsing in the adapters, the XML Config parser logic leaks through a bit into the core classes and I have avoided it in my code so far (Did the String-to-Enum conversion in Config Parsers).