Making ComponentPool constructor public