Use an interface to specify the behavior of a configuration decoder. Signed-off-by: David Calavera <david.calavera@gmail.com>