added traits for Component::setConfig() and Component::getConfig()